1

I installed Ubuntu 15.04, then I updated it and restarted. After that I can't install anything from terminal using

apt-get install [package-name] 

any more.
For every package it says

Unable to locate package [package-name]

It happened right after I upgraded to Ubuntu 15.04, immediately after its installation.

Is there any solution other than formatting the drive and reinstalling Ubuntu?

4
  • Please provide content from /etc/apt/sources.list and /etc/apt/sources.list.d/*
    – Christian
    May 3, 2015 at 9:45
  • Did you run sudo apt-get update? After installation the sources have been installed, but the packages lists aren't initialised until an updater program updates the sources list. If it still doesn't work, provide the output of what Christian asked. Please edit your question, don't post long output in the comments.
    – gertvdijk
    May 3, 2015 at 10:13
  • Actually, Software Updater popped up and I did it. I now notice, it was before updating too. And to mention it no third party softwares where installed too even i checked it...so no music and videos which I could install later on but not without apt-get working. This is my sources.list pastebin.com/cPpnxxUi And nothing inside sources.list.d
    – Sagaryal
    May 3, 2015 at 11:06
  • 1
    I am sorry. The problem was that the SERVER of my region was down. Thats why I could not get any updates and install. I changed my Server from Softwares and Updates and it is done... hihi... :D
    – Sagaryal
    May 4, 2015 at 3:08

1 Answer 1

0

Just remove the content of /var/lib/apt/lists directory:

sudo rm /var/lib/apt/lists/*

then try to run again :

sudo apt-get update

Not the answer you're looking for? Browse other questions tagged .