0

I was mashing with my computer and it start showing this error, while installing any software(sl, git, gvim,etc) it shows

E: Unable to locate package (package_name)
6
  • 2
    We need more information to answer your question. When you say you were "mashing" with your computer, what do you mean ? What was the last thing/file you modified that made the system go wrong ? What do you use to install software (apt-get, synaptic, ... )? Did you play around with your sources.list ? What happens when you run sudo apt-get update ?
    – Aserre
    Mar 27, 2014 at 11:34
  • I'm using sudo apt-get install
    – puda
    Mar 27, 2014 at 11:35
  • No,I was using ubuntu and got the same problem so I reinstall ubuntu and again it is showing the same message
    – puda
    Mar 27, 2014 at 11:38
  • 1
    Could you address my other questions and edit your original post acordingly ? More precisely, could you tell us what apt-get update returns, and the content of your /etc/apt/sources.list ?
    – Aserre
    Mar 27, 2014 at 11:40
  • Thanx man sudo apt-get update works i was not thinking of using sudo apt-get update because it was not working on my previous ubuntu but now it works..
    – puda
    Mar 27, 2014 at 11:48

1 Answer 1

0

After a fresh install, you always need to perform a sudo apt-get update to update your packages list using the /etc/apt/sources.list and /etc/apt/sources.list.d/* files.

This updates the package list and helps apt know from where each package mention in sudo apt-get install <package_name> should be fetched.

So before you do a sudo apt-get install <package_name> on fresh default installation(default in the sense it is not a remastered installation- which may or may not necessarily require an update), you need to do a sudo apt-get update.

You must log in to answer this question.

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