Results 1 to 9 of 9

Thread: Error with Sources list in Ubuntu 13.04

  1. #1
    Join Date
    May 2013
    Beans
    4

    Angry Error with Sources list in Ubuntu 13.04

    Soooo...
    I was trying to install skype (which is now completed, so this is now irrelevant), but when I was adding the archive.canonical.com repository to install Skype, it apparently caused an error in the Sources.list file (/etc/apt/sources.list) that prevented me from using apt-get, Ubuntu Software Center, and the Software and Updates manager (system settings). I managed to fix this error so now I can use apt-get commands again, but now I still can't use Ubuntu Software Center or the Software and Updates manager (system settings) and I get the following error message every time I turn on my laptop:
    "Opening the Cache (E:Opening /etc/apt/sources.list - ifstream::ifstream (13: Permission Denied), E:The list of sources could not be read., E:The package lists or status file could not be parsed or opened.) This usually means that your installed packages have unmet dependencies"

    I am using Ubuntu 13.04 and if it's relevant, I recently removed some libraries using the Remove Orphaned Packages app.

    I DON'T KNOW WHAT TO DO TO FIX THIS PLEASE HELP.

  2. #2
    Join Date
    Aug 2007
    Location
    Canada
    Beans
    420
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: Error with Sources list in Ubuntu 13.04

    Try with these commands:

    $ sudo rm /var/lib/apt/lists/* -vf
    $ sudo dpkg --clear-avail
    $ sudo rm /var/lib/apt/lists/* --force
    $ sudo dpkg --configure -a
    $ sudo reboot

    They worked for me in a similar situation, but I cannot promise the will work for you, but they are safe, if still you have problems after restart, run them again until everything work.
    Best, Gnusci

    "Never make a calculation until you know the answer." -- Wheeler, Spacetime Physics, pg 60.

  3. #3
    Join Date
    May 2013
    Beans
    4

    Re: Error with Sources list in Ubuntu 13.04

    Tried 3 times. It didn't work. with both instances of the rm command, I get "cannot remove 'var/lib/apt/lists/partial', is a directory." Is that relevant?

  4. #4
    Join Date
    Jun 2007
    Location
    K-o-T,
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Error with Sources list in Ubuntu 13.04

    Quote Originally Posted by KarkenSyn View Post
    Tried 3 times. It didn't work. with both instances of the rm command, I get "cannot remove 'var/lib/apt/lists/partial', is a directory." Is that relevant?
    It is a directory,so those commands will not be able to remove it as they will only delete files.

    Post output for
    Code:
    cat /etc/apt/sources.list
    cat /etc/apt/sources.list.d/*.list
    sudo apt-get update
    Good Luck
    Hypertension = Take with a pinch of salt
    | Psychocats | Ubuntu Documentation | Howto [Solved] | BBcode list | Brother Website |

  5. #5
    Join Date
    Sep 2012
    Location
    Gnome12o4/LXDE14o4
    Beans
    Hidden!

    Re: Error with Sources list in Ubuntu 13.04

    This should work

    Code:
    sudo rm -r /var/lib/apt/lists/* 
    sudo mkdir /var/lib/apt/lists/partial 
    sudo apt-get update
    Click on NewDocs PopularPages -- Ubuntu Documentation Search Tool
    Earn extra beans, report SPAM. Use the "Report Post" button.

  6. #6
    Join Date
    May 2013
    Beans
    4

    Re: Error with Sources list in Ubuntu 13.04

    Quote Originally Posted by plucky View Post
    It is a directory,so those commands will not be able to remove it as they will only delete files.

    Post output for
    Code:
    cat /etc/apt/sources.list
    cat /etc/apt/sources.list.d/*.list
    sudo apt-get update
    Good Luck
    When I ran sudo apt-get update, I got the following message at the last line:
    "E: GPG error: http://us.archive.ubuntu.com raring Release: The following signatures were invalid: NODATA 1 NO DATA 2"
    What does that mean?

  7. #7
    Join Date
    May 2013
    Beans
    4

    Re: Error with Sources list in Ubuntu 13.04

    Quote Originally Posted by ibjsb4 View Post
    This should work

    Code:
    sudo rm -r /var/lib/apt/lists/* 
    sudo mkdir /var/lib/apt/lists/partial 
    sudo apt-get update
    When I tried apt-get update, I got the following error message:
    "E: GPG error: http://ppa.launchpad.net raring Release: The following signatures were invalid: NODATA 1 NODATA 2

  8. #8
    Join Date
    May 2010
    Location
    Tewkesbury uk
    Beans
    7,512
    Distro
    Ubuntu Development Release

    Re: Error with Sources list in Ubuntu 13.04

    Hi

    Code:
    "E: GPG error: http://ppa.launchpad.net raring Release: The following signatures were invalid: NODATA 1 NODATA 2
    That does not look right.

    Open a terminal and copy and paste this into it

    Code:
    grep -n "^[^#]" /etc/apt/sources.list{,.d/*}
    Post the output back here by copying and pasting from the terminal (highlight text -> right click -> copy) and paste into you next post between code tag.

    To use code tags, highlight the text in your post and hit the # button above where you type your reply.

    You may have an invalid ppa entry.

    Kind regards
    Join us on irc at #ubuntuforums. For web chat see here

    If you believe everything you read, you better not read. ~ Japanese Proverb

    Do not read newspapers on an empty stomach ~ Russian Proverb ~ BrunoLotse

  9. #9
    Join Date
    Nov 2013
    Beans
    1

    Re: Error with Sources list in Ubuntu 13.04

    Hey, got the same problem.. But solved it! Type this in the terminal -->

    sudo rm -rf /var/lib/apt/lists
    sudo mkdir /var/lib/apt/lists
    sudo apt-get clean # Not sure if this will help or not, but it can't hurt
    sudo apt-get update

Tags for this Thread

Bookmarks

Posting Permissions

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