Find the answer to your Linux question:
Results 1 to 7 of 7
Hi folks, Ubuntu 7.04 desktop On Terminal running; $ sudo apt-file update It just hangs there for prolonged time and then exits to command prompt. Pls advise where shall I ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Guru
    Join Date
    Sep 2004
    Posts
    1,795

    Problem on running apt-file


    Hi folks,


    Ubuntu 7.04 desktop

    On Terminal running;
    $ sudo apt-file update

    It just hangs there for prolonged time and then exits to command prompt.

    Pls advise where shall I check? TIA


    I use it;

    $ sudo apt-file search dep
    to find the package providing the dep.


    B.R.
    satimis

  2. #2
    Linux User cheesecake42's Avatar
    Join Date
    Jan 2007
    Location
    Orlando, FL
    Posts
    370
    it just exits back to the terminal? try reinstalling apt through synaptec.

  3. #3
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    apt-file update doesn't throw any output and it syncs list from sources. Time taken by it depends on your speed of internet connection.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  4. #4
    Linux Guru
    Join Date
    Sep 2004
    Posts
    1,795
    Quote Originally Posted by devils_casper View Post
    apt-file update doesn't throw any output and it syncs list from sources. Time taken by it depends on your speed of internet connection.
    Hi devils_casper,


    You are correct. apt-file works on background w/o output.

    I just need running "apt-file search dep" to find which package provides the dep. Either the package has been installed or available on repo. Are there other ways? Thanks


    satimis

  5. #5
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    Did you try 'apt-cache search <dep>?
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  6. #6
    Linux Guru
    Join Date
    Sep 2004
    Posts
    1,795
    Quote Originally Posted by devils_casper View Post
    Did you try 'apt-cache search <dep>?
    Hi devils_casper,

    Yes but no output

    $ apt-cache search sane.h
    No output

    $ apt-file search sane.h
    Code:
    doc-linux-html: usr/share/doc/HOWTO/en-html/Scanner-HOWTO/sane.html
    doc-linux-html: usr/share/doc/HOWTO/en-html/Scanner-HOWTO/sane.html
    doc-linux-html: usr/share/doc/HOWTO/en-html/Scanner-HOWTO/sane.html
    doc-linux-html: usr/share/doc/HOWTO/en-html/Scanner-HOWTO/sane.html
    doc-linux-ja-html: usr/share/doc/HOWTO/ja-html/Scanner-HOWTO/sane.html
    doc-linux-ja-html: usr/share/doc/HOWTO/ja-html/Scanner-HOWTO/sane.html
    doc-linux-ja-html: usr/share/doc/HOWTO/ja-html/Scanner-HOWTO/sane.html
    doc-linux-ja-html: usr/share/doc/HOWTO/ja-html/Scanner-HOWTO/sane.html
    libsane-dev: usr/include/sane/sane.h
    libsane-dev: usr/include/sane/sane.h
    libsane-dev: usr/include/sane/sane.h
    libsane-dev: usr/include/sane/sane.h
    Why the output repeated.


    $ grep -v '^#' /etc/apt/sources.list | grep -v '^$' | sort
    Code:
    deb http://archive.canonical.com/ubuntu feisty-commercial main
    deb http://debian.linux.org.tw/ubuntu/ feisty-backports main restricted universe multiverse
    deb http://debian.linux.org.tw/ubuntu/ feisty main restricted
    deb http://debian.linux.org.tw/ubuntu/ feisty multiverse
    deb http://debian.linux.org.tw/ubuntu/ feisty-security main restricted
    deb http://debian.linux.org.tw/ubuntu/ feisty-security multiverse
    deb http://debian.linux.org.tw/ubuntu/ feisty-security universe
    deb http://debian.linux.org.tw/ubuntu/ feisty universe
    deb http://debian.linux.org.tw/ubuntu/ feisty-updates main restricted
    deb http://debian.linux.org.tw/ubuntu/ feisty-updates universe multiverse
    deb http://us.archive.ubuntu.com/ubuntu edgy universe
    deb http://wine.budgetdedicated.com/apt edgy main
    deb http://www.getautomatix.com/apt feisty main
    deb-src http://debian.linux.org.tw/ubuntu/ feisty-backports main restricted universe multiverse #Added by software-properties
    deb-src http://debian.linux.org.tw/ubuntu/ feisty restricted main multiverse universe #Added by software-properties
    deb-src http://debian.linux.org.tw/ubuntu/ feisty-security restricted main multiverse universe #Added by software-properties
    deb-src http://debian.linux.org.tw/ubuntu/ feisty-updates restricted main multiverse universe #Added by software-properties
    Are the last 4 lines considered repeated? If YES, which of them shall I remove? Where to retain the description of the deleted lines.

    If IIRC on Yum or on OBSD there is a way to find the package which provides X-dep.

    TIA


    satimis

  7. #7
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    Last four lines are not repeated. Package is available in feisty-backportsm restricted, security and updates sources. I will further look into this and post back soon.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •