Having problem with package manager

Asked by samir xalxo

samsung@ubuntu:~$ sudo fuser -vvv /var/lib/dpkg/lock
[sudo] password for samsung:
samsung@ubuntu:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=11.10
DISTRIB_CODENAME=oneiric
DISTRIB_DESCRIPTION="Ubuntu 11.10"
samsung@ubuntu:~$ uname -a
Linux ubuntu 3.0.0-16-generic #28-Ubuntu SMP Fri Jan 27 17:50:54 UTC 2012 i686 i686 i386 GNU/Linux
samsung@ubuntu:~$ sudo rm /var/lib/apt/lists/lock
samsung@ubuntu:~$ sudo cp -arf /var/lib/dpkg /var/lib/dpkg.backup
samsung@ubuntu:~$ sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status
samsung@ubuntu:~$ sudo cp /var/lib/dpkg/available-old /var/lib/dpkg/available
samsung@ubuntu:~$ sudo rm -rf /var/lib/dpkg/updates/*
samsung@ubuntu:~$ sudo rm -rf /var/lib/apt/lists
samsung@ubuntu:~$ sudo rm /var/cache/apt/*.bin
samsung@ubuntu:~$ sudo mkdir /var/lib/apt/lists
samsung@ubuntu:~$ sudo mkdir /var/lib/apt/lists/partial
samsung@ubuntu:~$ LANG=C;sudo apt-get clean
samsung@ubuntu:~$ LANG=C;sudo apt-get autoclean
Reading package lists... Done
Building dependency tree
Reading state information... Done
samsung@ubuntu:~$ LANG=C;sudo apt-get --purge autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  linux-headers-3.0.0-15* linux-headers-3.0.0-15-generic*
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
8 not fully installed or removed.
After this operation, 98.2 MB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 213286 files and directories currently installed.)
Removing linux-headers-3.0.0-15-generic ...
Removing linux-headers-3.0.0-15 ...
Setting up libpng12-0 (1.2.46-3ubuntu1.1) ...
Setting up adobe-flashplugin (11.1.102.62-0oneiric1) ...
Setting up adobe-flash-properties-gtk (11.1.102.62-0oneiric1) ...
Setting up thunderbird (10.0.1+build1-0ubuntu0.11.10.1) ...
Setting up thunderbird-globalmenu (10.0.1+build1-0ubuntu0.11.10.1) ...
Setting up thunderbird-gnome-support (10.0.1+build1-0ubuntu0.11.10.1) ...
Setting up update-manager-core (1:0.152.25.8) ...
Setting up update-manager (1:0.152.25.8) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
samsung@ubuntu:~$ LANG=C;sudo apt-get update -o APT::Cache-Limit=25165824
Ign http://archive.ubuntu.com oneiric InRelease
Ign http://extras.ubuntu.com natty InRelease
Ign http://archive.canonical.com oneiric InRelease
Ign http://archive.canonical.com natty InRelease
Get:1 http://archive.ubuntu.com oneiric Release.gpg [198 B]
Get:2 http://extras.ubuntu.com natty Release.gpg [72 B]
Get:3 http://archive.canonical.com oneiric Release.gpg [198 B]
Get:4 http://archive.ubuntu.com oneiric Release [40.8 kB]
Get:5 http://extras.ubuntu.com natty Release [9753 B]
Get:6 http://archive.canonical.com natty Release.gpg [198 B]
Get:7 http://archive.canonical.com oneiric Release [5922 B]
Get:8 http://extras.ubuntu.com natty/main Sources [14 B]
Get:9 http://archive.ubuntu.com oneiric/main Sources [877 kB]
Get:10 http://extras.ubuntu.com natty/main i386 Packages [14 B]
Ign http://extras.ubuntu.com natty/main TranslationIndex
Get:11 http://archive.canonical.com natty Release [5916 B]
Get:12 http://archive.canonical.com oneiric/partner i386 Packages [3939 B]
Ign http://archive.canonical.com oneiric/partner TranslationIndex
Get:13 http://archive.canonical.com natty/partner Sources [4582 B]
Ign http://extras.ubuntu.com natty/main Translation-en
Ign http://archive.canonical.com oneiric/partner Translation-en
Get:14 http://archive.ubuntu.com oneiric/main i386 Packages [1226 kB]
Get:15 http://archive.ubuntu.com oneiric/main TranslationIndex [3289 B]
Get:16 http://archive.ubuntu.com oneiric/main Translation-en [701 kB]
Fetched 2880 kB in 44s (65.0 kB/s)
Reading package lists... Done
samsung@ubuntu:~$ sudo dpkg --configure -a
samsung@ubuntu:~$ sudo dpkg --clear-avail
samsung@ubuntu:~$ LANG=C;sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
samsung@ubuntu:~$ LANG=C;sudo apt-get --fix-missing install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
samsung@ubuntu:~$ LANG=C;sudo apt-get update -o APT::Cache-Limit=25165824 && sudo apt-get dist-upgrade
Ign http://extras.ubuntu.com natty InRelease
Ign http://archive.canonical.com oneiric InRelease
Ign http://archive.canonical.com natty InRelease
Ign http://archive.ubuntu.com oneiric InRelease
Hit http://extras.ubuntu.com natty Release.gpg
Hit http://archive.canonical.com oneiric Release.gpg
Hit http://archive.ubuntu.com oneiric Release.gpg
Hit http://extras.ubuntu.com natty Release
Hit http://archive.canonical.com natty Release.gpg
Hit http://archive.ubuntu.com oneiric Release
Hit http://archive.canonical.com oneiric Release
Hit http://extras.ubuntu.com natty/main Sources
Hit http://archive.ubuntu.com oneiric/main Sources
Hit http://extras.ubuntu.com natty/main i386 Packages
Ign http://extras.ubuntu.com natty/main TranslationIndex
Hit http://archive.canonical.com natty Release
Hit http://archive.ubuntu.com oneiric/main i386 Packages
Hit http://archive.ubuntu.com oneiric/main TranslationIndex
Hit http://archive.canonical.com oneiric/partner i386 Packages
Ign http://archive.canonical.com oneiric/partner TranslationIndex
Hit http://archive.ubuntu.com oneiric/main Translation-en
Hit http://archive.canonical.com natty/partner Sources
Ign http://extras.ubuntu.com natty/main Translation-en
Ign http://archive.canonical.com oneiric/partner Translation-en
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
samsung@ubuntu:~$

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu apt Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Jason Kairl (jdkairl) said :
#1

Hello Samir

What is the specific problem your having?

It looks like your /etc/apt/source.list is a bit mixed up. You have references to the natty repos as well as the oneric repos. Since your running oneric you should change all the refrences in sources.list to refer to oneric.

Cheers Jason.

Can you help with this problem?

Provide an answer of your own, or ask samir xalxo for more information if necessary.

To post a message you must log in.