PDA

View Full Version : [ubuntu] Package Manager error!



Chinedu
June 6th, 2009, 07:54 AM
The following are the errors thrown from different Package Manager commands:

Opening synaptics produces this:
E: Read error - read (5 Input/output error)
E: The package lists or status file could not be parsed or opened.
E: _cache->open() failed, please report.

chinedu@chinedu-laptop:~$ sudo apt-get install -f
W: Not using locking for read only lock file /var/lib/dpkg/lock
E: Unable to write to /var/cache/apt/
E: The package lists or status file could not be parsed or opened.


chinedu@chinedu-laptop:~$ sudo apt-get upgrade
[sudo] password for chinedu:
E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?

chinedu@chinedu-laptop:~$ sudo apt-get update
Hit http://archive.canonical.com hardy Release.gpg
Ign http://archive.canonical.com hardy/partner Translation-en_NG
Hit http://archive.ubuntu.com hardy Release.gpg
Ign http://archive.ubuntu.com hardy/main Translation-en_NG
Hit http://archive.canonical.com hardy Release
Ign http://archive.ubuntu.com hardy/restricted Translation-en_NG
Ign http://archive.ubuntu.com hardy/universe Translation-en_NG
Ign http://archive.ubuntu.com hardy/multiverse Translation-en_NG
Hit http://archive.ubuntu.com hardy-updates Release.gpg
Ign http://archive.ubuntu.com hardy-updates/main Translation-en_NG
Ign http://archive.ubuntu.com hardy-updates/restricted Translation-en_NG
Ign http://archive.ubuntu.com hardy-updates/universe Translation-en_NG
Ign http://archive.ubuntu.com hardy-updates/multiverse Translation-en_NG
Hit http://archive.ubuntu.com hardy-backports Release.gpg
Ign http://archive.ubuntu.com hardy-backports/main Translation-en_NG
Ign http://archive.ubuntu.com hardy-backports/restricted Translation-en_NG
Ign http://archive.ubuntu.com hardy-backports/universe Translation-en_NG
Ign http://archive.canonical.com hardy/partner Packages
Ign http://archive.ubuntu.com hardy-backports/multiverse Translation-en_NG
Hit http://archive.ubuntu.com hardy-security Release.gpg
Ign http://archive.ubuntu.com hardy-security/main Translation-en_NG
Ign http://archive.ubuntu.com hardy-security/restricted Translation-en_NG
Ign http://archive.ubuntu.com hardy-security/universe Translation-en_NG
Ign http://archive.ubuntu.com hardy-security/multiverse Translation-en_NG
Ign http://archive.canonical.com hardy/partner Sources
Hit http://archive.ubuntu.com hardy-proposed Release.gpg
Ign http://archive.ubuntu.com hardy-proposed/restricted Translation-en_NG
Ign http://archive.ubuntu.com hardy-proposed/main Translation-en_NG
Ign http://archive.ubuntu.com hardy-proposed/multiverse Translation-en_NG
Ign http://archive.ubuntu.com hardy-proposed/universe Translation-en_NG
Hit http://archive.ubuntu.com hardy Release
Hit http://archive.ubuntu.com hardy-updates Release
Hit http://archive.ubuntu.com hardy-backports Release
Hit http://archive.ubuntu.com hardy-security Release
Hit http://archive.canonical.com hardy/partner Packages
Hit http://archive.ubuntu.com hardy-proposed Release
Hit http://archive.ubuntu.com hardy/main Packages
Hit http://archive.ubuntu.com hardy/restricted Packages
Hit http://archive.ubuntu.com hardy/universe Packages
Hit http://archive.ubuntu.com hardy/multiverse Packages
Hit http://archive.ubuntu.com hardy-updates/main Packages
Hit http://archive.ubuntu.com hardy-updates/restricted Packages
Hit http://archive.canonical.com hardy/partner Sources
Get:1 http://archive.ubuntu.com hardy-updates/universe Packages [199kB]
Hit http://archive.ubuntu.com hardy-updates/multiverse Packages
Hit http://archive.ubuntu.com hardy-backports/main Packages
Hit http://archive.ubuntu.com hardy-backports/restricted Packages
Hit http://archive.ubuntu.com hardy-backports/universe Packages
Hit http://archive.ubuntu.com hardy-backports/multiverse Packages
Hit http://archive.ubuntu.com hardy-security/main Packages
Hit http://archive.ubuntu.com hardy-security/restricted Packages
Hit http://archive.ubuntu.com hardy-security/universe Packages
Hit http://archive.ubuntu.com hardy-security/multiverse Packages
Hit http://archive.ubuntu.com hardy-proposed/restricted Packages
Hit http://archive.ubuntu.com hardy-proposed/main Packages
Hit http://archive.ubuntu.com hardy-proposed/multiverse Packages
Get:2 http://archive.ubuntu.com hardy-proposed/universe Packages [11.8kB]
Fetched 211kB in 1min2s (3382B/s)
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/hardy-updates/universe/binary-i386/Packages.bz2 rename failed, No such file or directory (/var/lib/apt/lists/partial/archive.ubuntu.com_ubuntu_dists_hardy-updates_universe_binary-i386_Packages.decomp -> /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_hardy-updates_universe_binary-i386_Packages).

E: Some index files failed to download, they have been ignored, or old ones used instead.
W: Not using locking for read only lock file /var/lib/dpkg/lock

chinedu@chinedu-laptop:~$ sudo apt-get autoclean
W: Not using locking for read only lock file /var/cache/apt/archives/lock
W: Not using locking for read only lock file /var/lib/dpkg/lock
E: Unable to write to /var/cache/apt/
E: The package lists or status file could not be parsed or opened.

chinedu@chinedu-laptop:~$ cat /etc/apt/sources.list
# deb cdrom:[Ubuntu 8.04 _Hardy Heron_ - Release i386 (20080423)]/ hardy main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb http://archive.ubuntu.com/ubuntu/ hardy main restricted

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

## 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
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
deb http://archive.ubuntu.com/ubuntu/ hardy universe
deb http://archive.ubuntu.com/ubuntu/ hardy-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://archive.ubuntu.com/ubuntu/ hardy multiverse
deb http://archive.ubuntu.com/ubuntu/ hardy-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://archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe multiverse
# deb-src http://ng.archive.ubuntu.com/ubuntu/ hardy-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 hardy partner
deb-src http://archive.canonical.com/ubuntu hardy partner

deb http://archive.ubuntu.com/ubuntu/ hardy-security main restricted
deb http://archive.ubuntu.com/ubuntu/ hardy-security universe
deb http://archive.ubuntu.com/ubuntu/ hardy-security multiverse
deb http://archive.ubuntu.com/ubuntu/ hardy-proposed restricted main multiverse universe

zvacet
June 8th, 2009, 09:14 AM
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?

Are you running something else at the same time,like synaptic or update manager?If yes then close them and try with


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