Find the answer to your Linux question:
Results 1 to 5 of 5
Hi folks, Debian Lenny $ cat /etc/apt/sources.list Code: deb http://ftp.us.debian.org/debian/ lenny main deb-src http://ftp.us.debian.org/debian/ lenny main deb http://security.debian.org/ lenny/updates main contrib deb-src http://security.debian.org/ lenny/updates main contrib deb http://ftp.us.debian.org/debian/ lenny non-free ...
  1. #1
    Linux Guru
    Join Date
    Sep 2004
    Posts
    1,546

    Running "apt-file update" problem

    Hi folks,

    Debian Lenny


    $ cat /etc/apt/sources.list
    Code:
    deb http://ftp.us.debian.org/debian/ lenny main
    deb-src http://ftp.us.debian.org/debian/ lenny main
    
    deb http://security.debian.org/ lenny/updates main contrib
    deb-src http://security.debian.org/ lenny/updates main contrib
    
    deb http://ftp.us.debian.org/debian/ lenny non-free
    deb http://ftp.us.debian.org/debian/ lenny contrib
    # apt-file update
    Code:
    Can't get http://security.debian.org/dists/lenny/updates/Contents-i386.gz
    Please advise how to fix the problem. TIA


    B.R.
    satimis

  2. #2
    Linux Guru reed9's Avatar
    Join Date
    Feb 2009
    Location
    Boston, MA
    Posts
    4,651
    To create the database, you need to run apt-file as root.

    Code:
    su -
    apt-file update

  3. #3
    Linux Guru
    Join Date
    Sep 2004
    Posts
    1,546
    Quote Originally Posted by reed9 View Post
    To create the database, you need to run apt-file as root.

    Code:
    su -
    apt-file update
    Hi reed9,

    Yes, I did it in the same way as advised, in the super root mode.

    Just re-tried it with same result;

    # su -
    root@vzd4:~# apt-file update
    Code:
    Can't get http://security.debian.org/dists/lenny/updates/Contents-i386.gz

    B.R.
    satimis

  4. #4
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Its a Registerd BUG.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  5. #5
    Linux Guru
    Join Date
    Sep 2004
    Posts
    1,546
    Quote Originally Posted by devils casper View Post
    Hi evils casper,


    Thanks for your advice.

    I suppose it doesn't affect running "apt-file search /bin/package_name"


    B.R.
    satimis

Posting Permissions

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