PDA

View Full Version : [ubuntu] Problem using apt-get



smj
July 1st, 2008, 04:23 AM
Hi,
Trying to install build-essentials and screen but getting the following error:

$ sudo apt-get install screen
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package screen

Does anyone know what I'm doing wrong? I assume apt-get must be configured wrong but I haven't used it before so I don't know how to fix it.

Thanks

dominiquec
July 1st, 2008, 04:28 AM
You might want to check your /etc/apt/sources.list. Try to enable all the repositories.

Then:

sudo apt-get update

bikeboy
July 1st, 2008, 04:29 AM
As far as I can tell screen is in the main repository, so you shouldn't need to enable others. It's also installed by default in 8.04 Desktop FWIW.

edit: try running this first.

sudo apt-get update

smj
July 1st, 2008, 04:35 AM
I had tried doing apt-get update and that didn't solve the problem.

But as dominiquec suggested, I enabled some repositries in /etc/apt/sources.list and then it worked.

Many thanks

oldos2er
July 1st, 2008, 04:58 AM
The package name is "build-essential"