Find the answer to your Linux question:
Results 1 to 6 of 6
Every day my computer notifies me that I have duplicate files in: /var/lib/apt/lists When I look in the file there are indeed duplicates. In suse 10 I just have to ...
  1. #1
    Linux Enthusiast cousinlucky's Avatar
    Join Date
    Dec 2005
    Location
    New York City
    Posts
    575

    Command line assistance needed, please!

    Every day my computer notifies me that I have duplicate files in:
    /var/lib/apt/lists
    When I look in the file there are indeed duplicates. In suse 10 I just have to log in as root and I could deal with the files. In Ubuntu I have to use a command in the terminal. Can someone please give me the command to open up this file using the terminal? Thanks!
    Linux registered user # 414321
    You Should Not Give In To Evils, But Proceed Ever More Boldly Against Them!! -from book six of Virgil's Aeneid
    http://www.paynal.com
    Everything Within The Universe Is Related; We Are All Cousins!!

  2. #2
    Super Moderator MikeTbob's Avatar
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    7,145
    Well, you could try nano, it's a text editor.
    Code:
    cd /var/lib/apt/lists
    Code:
    sudo nano filename
    That'll give you root permissions so be careful.
    I do not respond to private messages asking for Linux help, Please keep it on the forums only.
    All new users please read this.** Forum FAQS. ** Adopt an unanswered post.

  3. #3
    Linux Enthusiast cousinlucky's Avatar
    Join Date
    Dec 2005
    Location
    New York City
    Posts
    575
    MikeTbob,
    I got a box that said:[ "/var/lib/apt/lists" is a directory ]
    below that were symbols like^R for read but none of the symbols worked?

    Is there another method?
    Linux registered user # 414321
    You Should Not Give In To Evils, But Proceed Ever More Boldly Against Them!! -from book six of Virgil's Aeneid
    http://www.paynal.com
    Everything Within The Universe Is Related; We Are All Cousins!!

  4. #4
    Super Moderator MikeTbob's Avatar
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    7,145
    /var/lib/apt/lists
    is a directory, but there are files in it right?
    use the ls command to list the contents of a directory
    ls
    Now that you know the name of the file, you can open it.
    sudo nano filename
    Where filename is the name of the file you want to open.
    The ^R and so forth, is just the commands for nano, ^R means use Cntrl R for Read file, ^X means use Cntrl X to exit.

    If you have multiple files of the same name in the directory then you might want to rename or just delete them.
    I do not respond to private messages asking for Linux help, Please keep it on the forums only.
    All new users please read this.** Forum FAQS. ** Adopt an unanswered post.

  5. #5
    Linux Enthusiast cousinlucky's Avatar
    Join Date
    Dec 2005
    Location
    New York City
    Posts
    575
    Thanks MikeTBob!! I was advised on another forum that I can gain root access to all of my Ubuntu files by going into the terminal and typing gksudo nautilus. That worked for me and I got rid of the pesky extra file.
    Linux registered user # 414321
    You Should Not Give In To Evils, But Proceed Ever More Boldly Against Them!! -from book six of Virgil's Aeneid
    http://www.paynal.com
    Everything Within The Universe Is Related; We Are All Cousins!!

  6. #6
    Linux User saivin's Avatar
    Join Date
    Dec 2008
    Location
    Bengaluru, India
    Posts
    305
    Quote Originally Posted by cousinlucky View Post
    Every day my computer notifies me that I have duplicate files in:
    /var/lib/apt/lists
    Hi Mike,
    What are these files in /var/lib/apt/lists? What do they do? How do you know if you have duplicate entries?
    The below are what I have in my /var/lib/apt/lists:
    Code:
    ftp.iitm.ac.in_debian_dists_lenny_contrib_binary-i386_Packages
    ftp.iitm.ac.in_debian_dists_lenny_contrib_source_Sources
    ftp.iitm.ac.in_debian_dists_lenny_main_binary-i386_Packages
    ftp.iitm.ac.in_debian_dists_lenny_main_source_Sources
    ftp.iitm.ac.in_debian_dists_lenny_Release
    ftp.iitm.ac.in_debian_dists_lenny_Release.gpg
    ftp.us.debian.org_debian_dists_lenny_contrib_binary-i386_Packages
    ftp.us.debian.org_debian_dists_lenny_main_binary-i386_Packages
    ftp.us.debian.org_debian_dists_lenny_Release
    ftp.us.debian.org_debian_dists_lenny_Release.gpg
    lock
    partial
    security.debian.org_dists_lenny_updates_contrib_binary-i386_Packages
    security.debian.org_dists_lenny_updates_contrib_source_Sources
    security.debian.org_dists_lenny_updates_main_binary-i386_Packages
    security.debian.org_dists_lenny_updates_main_source_Sources
    security.debian.org_dists_lenny_updates_Release
    security.debian.org_dists_lenny_updates_Release.gpg
    volatile.debian.org_debian-volatile_dists_lenny_volatile_contrib_binary-i386_Packages
    volatile.debian.org_debian-volatile_dists_lenny_volatile_contrib_source_Sources
    volatile.debian.org_debian-volatile_dists_lenny_volatile_main_binary-i386_Packages
    volatile.debian.org_debian-volatile_dists_lenny_volatile_main_source_Sources
    volatile.debian.org_debian-volatile_dists_lenny_volatile_Release
    volatile.debian.org_debian-volatile_dists_lenny_volatile_Release.gpg
    A candle looses nothing by lighting other candles. - Khalil Zibran.
    Registered Linux User #490076

Posting Permissions

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