PDA

View Full Version : [ubuntu] cant check upates



louis.roux
March 16th, 2011, 01:32 PM
I upgraded to the 10.10 and now I get a red triangle with a explanation point in the middle on the upper right hand of my screen next to the time and date. It apparently has to do with the update manager because when I click on it, it opens up the update manager. But when I try to install the updates I get the following message:


Failed to lock the package manager

Check if you are currently running another software management tool, e.g. Synaptic or aptitude. Only one tool is allowed to make changes at a time.

zvacet
March 16th, 2011, 01:39 PM
As another way to update close update manager and type in terminal


sudo apt-get update && sudo apt-get upgrade

Dutch70
March 16th, 2011, 01:52 PM
That usually happens when you have more than one of these three opened.

Synaptic Package Manager
Software Center
or the Terminal

louis.roux
March 16th, 2011, 03:11 PM
@ zvacet: I did that but the following comes up in the terminal


owner@ubuntu:~$ sudo apt-get update && sudo apt-get upgrade
[sudo] password for owner:
E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable)
E: Unable to lock directory /var/lib/apt/lists/
owner@ubuntu:~$

@ Dutch70: I do not have more then one of those open. In fact I have rebooted my computer several times to see if I could get it to work.

Dutch70
March 16th, 2011, 03:32 PM
@ zvacet: I did that but the following comes up in the terminal


owner@ubuntu:~$ sudo apt-get update && sudo apt-get upgrade
[sudo] password for owner:
E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable)
E: Unable to lock directory /var/lib/apt/lists/
owner@ubuntu:~$

@ Dutch70: I do not have more then one of those open. In fact I have rebooted my computer several times to see if I could get it to work.

11: Resource temporarily unavailable

That probably means that the mirror you're getting your updates from is currently down. Either wait a while or choose a different mirror.

louis.roux
March 16th, 2011, 03:37 PM
What is a mirror and how do I choose another mirror?

Frogs Hair
March 16th, 2011, 04:27 PM
The mirror is the location your download is coming from. To change it try Update manager settings > Ubuntu software tab and under download location choose other and a dialog box will open . Select use best server and Ubuntu will run tests to locate the best server . If you already have the best server try again later.

louis.roux
March 17th, 2011, 12:05 PM
now I know I have a problem because when I run the test it says no suitable mirror found and tells me to check my internet connection. But my internet connection is just fine.

plucky
March 17th, 2011, 04:25 PM
now I know I have a problem because when I run the test it says no suitable mirror found and tells me to check my internet connection. But my internet connection is just fine.

Please post your sources.list

from a terminal
cat /etc/apt/sources.list and
ls -l /etc/apt/sources.list.d/ and post to the forum

louis.roux
March 17th, 2011, 11:20 PM
Please post your sources.list

from a terminal
cat /etc/apt/sources.list and
ls -l /etc/apt/sources.list.d/ and post to the forum


# deb cdrom:[Ubuntu 9.04 _Jaunty Jackalope_ - Release i386 (20090420.1)]/ jaunty main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb cdrom:[Ubuntu 10.10 _Maverick Meerkat_ - Release i386 (20101007)]/ maverick main restricted
deb http://us.archive.ubuntu.com/ubuntu/ maverick main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ maverick main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ maverick-updates main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ maverick-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://us.archive.ubuntu.com/ubuntu/ maverick universe
deb-src http://us.archive.ubuntu.com/ubuntu/ maverick universe
deb http://us.archive.ubuntu.com/ubuntu/ maverick-updates universe
deb-src http://us.archive.ubuntu.com/ubuntu/ maverick-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://us.archive.ubuntu.com/ubuntu/ maverick multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ maverick multiverse
deb http://us.archive.ubuntu.com/ubuntu/ maverick-updates multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ maverick-updates multiverse

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://us.archive.ubuntu.com/ubuntu/ jaunty-backports main restricted universe multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ jaunty-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu jaunty partner
# deb-src http://archive.canonical.com/ubuntu jaunty partner

deb http://security.ubuntu.com/ubuntu maverick-security main restricted
deb-src http://security.ubuntu.com/ubuntu maverick-security main restricted
deb http://security.ubuntu.com/ubuntu maverick-security universe
deb-src http://security.ubuntu.com/ubuntu maverick-security universe
deb http://security.ubuntu.com/ubuntu maverick-security multiverse
deb-src http://security.ubuntu.com/ubuntu maverick-security multiverse
# deb http://ppa.launchpad.net/claydoh/ppa/ubuntu lucid main # disabled on upgrade to lucid
# deb-src http://ppa.launchpad.net/claydoh/ppa/ubuntu lucid main # disabled on upgrade to lucid
# deb http://ppa.launchpad.net/gwibber-daily/ppa/ubuntu jaunty main # disabled on upgrade to lucid
# deb-src http://ppa.launchpad.net/gwibber-daily/ppa/ubuntu jaunty main # disabled on upgrade to lucid

deb http://extras.ubuntu.com/ubuntu maverick main #Third party developers repository



owner@ubuntu:~$ ls -l /etc/apt/sources.list.d/
total 24
-rw-r--r-- 1 root root 98 2011-03-05 17:09 gwibber-daily-ppa-karmic.list
-rw-r--r-- 1 root root 98 2011-03-05 17:09 gwibber-daily-ppa-karmic.list.distUpgrade
-rw-r--r-- 1 root root 66 2010-02-15 09:47 gwibber-daily-ppa-karmic.list.save
-rw-r--r-- 1 root root 176 2011-03-05 17:09 karmic-partner.list
-rw-r--r-- 1 root root 173 2011-03-05 17:09 karmic-partner.list.distUpgrade
-rw-r--r-- 1 root root 81 2010-02-15 09:47 karmic-partner.list.save
owner@ubuntu:~$

plucky
March 17th, 2011, 11:36 PM
You need to disable the Cdrom as a source
deb cdrom:[Ubuntu 10.10 _Maverick Meerkat_ - Release i386 (20101007)]/ maverick main restricted in sources.list and un-tick all the non-maverick sources in Software Sources.

It might even be worth deleting them.

Then run
sudo apt-get update and post the result.

Good Luck

louis.roux
March 18th, 2011, 02:54 AM
You need to disable the Cdrom as a source
deb cdrom:[Ubuntu 10.10 _Maverick Meerkat_ - Release i386 (20101007)]/ maverick main restricted in sources.list and un-tick all the non-maverick sources in Software Sources.

It might even be worth deleting them.

Then run
sudo apt-get update and post the result.

Good Luck

Still getting the following in terminal


E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable)
E: Unable to lock directory /var/lib/apt/lists/
owner@ubuntu:~$

and the following when I try to install through the update manager
Failed to lock the package manager

C
heck if you are currently running another software management tool, e.g. Synaptic or aptitude. Only one tool is allowed to make changes at a time.

The package indexes are currently changed by apt-get.

kagerato
March 18th, 2011, 06:29 AM
There's a discretionary lock on some of apt's key files. That means that more than one program is trying to access those files simultaneously. The second (third, etc.) programs will not proceed as long as they're designed to obey the discretionary lock, because doing so could cause substantial data corruption.

Essentially, you just need to close whatever application is holding the lock. It might be the software center, or the background updater, or Synaptic, or another apt-get process in a terminal somewhere. Check around.

Dutch70
March 18th, 2011, 07:58 AM
You can check in system monitor. I'm not sure exactly what to tell you to look for though.

plucky
March 18th, 2011, 09:51 AM
If you cannot find anything in system-monitor,try deleting the lock file.
Use
cd /var/lib/apt/lists/
sudo rm lock

Then run the "sudo apt-get update" command and it will be re-created.

Good Luck

louis.roux
March 19th, 2011, 03:56 PM
Plucky that was the answer. thank you