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)
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
.
apt-get
,synaptic
, ... )? Did you play around with yoursources.list
? What happens when you runsudo apt-get update
?apt-get update
returns, and the content of your/etc/apt/sources.list
?