Broken packages - can't upgrade from 9.10 to 10.04

Asked by d3j452

Update: 07:30 PST 6/17/2011:
Manfred,
Thanks for your reply.
1) I had already removed the CD-Rom entries.
2) The command for getting the key worked nicely <Grin>
3) I succeeded in upgrading (fumbled my way through) by using the "Smart" upgrade option - probably due to 3rd party software
4) Terminal output is as follows:

dmg@krikit:~$ uname -a
Linux krikit 2.6.32-32-generic #62-Ubuntu SMP Wed Apr 20 21:54:21 UTC 2011 i686 GNU/Linux
dmg@krikit:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 10.04.2 LTS
Release: 10.04
Codename: lucid

Looks goor to me <g> Many Thanks
Dave G.

Update: 21:00 6/16/2011 -Although the "fix broken packages" didn't work (hence the input below) executing the suggested trouble shooting sequence seems to have fixed the problem,
I successfully upgraded the Basic Ubuntu OS from 9.10 to 10.04 LTS using the Upgrade System in Package Manager..
I have not yet tried updating the non-canonical S/W or an online update.
More later...good or bad :)

Trying to upgrade a 9.10 installation to 10.04
No go !!
terminal output of command sequence per trouble shooting page follows:
dmg@krikit:~$ sudo fuser -vvv /var/lib/dpkg/lock
[sudo] password for dmg:
dmg@krikit:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=9.10
DISTRIB_CODENAME=karmic
DISTRIB_DESCRIPTION="Ubuntu 9.10"
dmg@krikit:~$ uname -a
Linux krikit 2.6.31-23-generic #75-Ubuntu SMP Fri Mar 18 18:08:39 UTC 2011 i686 GNU/Linux
dmg@krikit:~$ sudo rm /var/lib/apt/lists/lock
dmg@krikit:~$ sudo cp -arf /var/lib/dpkg /var/lib/dpkg.back
dmg@krikit:~$
dmg@krikit:~$ sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status
dmg@krikit:~$ sudo cp /var/lib/dpkg/available-old /var/lib/dpkg/available
dmg@krikit:~$ sudo rm -rf /var/lib/dpkg/updates/*
dmg@krikit:~$ sudo rm -rf /var/lib/apt/lists
dmg@krikit:~$ sudo rm /var/cache/apt/*.bin
dmg@krikit:~$ sudo mkdir /var/lib/apt/lists/partial
mkdir: cannot create directory `/var/lib/apt/lists/partial': No such file or directory
dmg@krikit:~$
dmg@krikit:~$
dmg@krikit:~$ sudo mkdir /var/lib/apt/lists/
dmg@krikit:~$ sudo mkdir /var/lib/apt/lists/partial
dmg@krikit:~$ LANG=C;sudo apt-get clean
dmg@krikit:~$ LANG=C;sudo apt-get autoclean
Reading package lists... Done
Building dependency tree
Reading state information... Done
dmg@krikit:~$ LANG=C;sudo apt-get --purge autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  couchdb-bin* desktopcouch* erlang-base* erlang-crypto* erlang-inets*
  erlang-mnesia* erlang-public-key* erlang-runtime-tools* erlang-ssl*
  erlang-xmerl* python-avahi* python-couchdb* python-desktopcouch*
  python-desktopcouch-records*
0 upgraded, 0 newly installed, 14 to remove and 0 not upgraded.
After this operation, 12.3MB disk space will be freed.
Do you want to continue [Y/n]? Y
(Reading database ... 5%
dpkg: warning: files list file for package `erlang-public-key' missing, assuming package has no files currently installed.
(Reading database ... 15%
dpkg: warning: files list file for package `erlang-xmerl' missing, assuming package has no files currently installed.
(Reading database ... 40%
dpkg: warning: files list file for package `erlang-inets' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `erlang-mnesia' missing, assuming package has no files currently installed.
(Reading database ... 45%
dpkg: warning: files list file for package `erlang-ssl' missing, assuming package has no files currently installed.
(Reading database ... 50%
dpkg: warning: files list file for package `python-avahi' missing, assuming package has no files currently installed.
(Reading database ... 65%
dpkg: warning: files list file for package `erlang-runtime-tools' missing, assuming package has no files currently installed.
(Reading database ... 80%
dpkg: warning: files list file for package `python-couchdb' missing, assuming package has no files currently installed.
(Reading database ... 85%
dpkg: warning: files list file for package `python-desktopcouch' missing, assuming package has no files currently installed.
(Reading database ... 90%
dpkg: warning: files list file for package `python-desktopcouch-records' missing, assuming package has no files currently installed.
(Reading database ... 95%
dpkg: warning: files list file for package `erlang-crypto' missing, assuming package has no files currently installed.
(Reading database ... 240056 files and directories currently installed.)
Removing python-desktopcouch ...
Removing desktopcouch ...
Purging configuration files for desktopcouch ...
Removing python-desktopcouch-records ...
Removing couchdb-bin ...
Purging configuration files for couchdb-bin ...
Removing erlang-inets ...
Removing erlang-ssl ...
Removing erlang-public-key ...
Removing erlang-crypto ...
Removing erlang-runtime-tools ...
Removing erlang-mnesia ...
Removing erlang-xmerl ...
Removing erlang-base ...
Purging configuration files for erlang-base ...
Removing python-avahi ...
Removing python-couchdb ...
Processing triggers for menu ...
dmg@krikit:~$ LANG=C;sudo apt-get update -o APT::Cache-Limit=25165824
Ign cdrom://Ubuntu 9.04 _Jaunty Jackalope_ - Release i386 (20090420.1) jaunty Release.gpg
Ign cdrom://Ubuntu 9.10 _Karmic Koala_ - Release i386 (20091028.5) karmic Release.gpg
Ign cdrom://Ubuntu 9.04 _Jaunty Jackalope_ - Release i386 (20090420.1) jaunty Release
Ign cdrom://Ubuntu 9.10 _Karmic Koala_ - Release i386 (20091028.5) karmic Release
Ign cdrom://Ubuntu 9.04 _Jaunty Jackalope_ - Release i386 (20090420.1) jaunty/main Packages
Ign cdrom://Ubuntu 9.04 _Jaunty Jackalope_ - Release i386 (20090420.1) jaunty/restricted Packages
Ign cdrom://Ubuntu 9.10 _Karmic Koala_ - Release i386 (20091028.5) karmic/main Packages
Ign cdrom://Ubuntu 9.10 _Karmic Koala_ - Release i386 (20091028.5) karmic/restricted Packages
Ign cdrom://Ubuntu 9.04 _Jaunty Jackalope_ - Release i386 (20090420.1) jaunty/main Packages
Ign cdrom://Ubuntu 9.04 _Jaunty Jackalope_ - Release i386 (20090420.1) jaunty/restricted Packages
Ign cdrom://Ubuntu 9.10 _Karmic Koala_ - Release i386 (20091028.5) karmic/main Packages
Ign cdrom://Ubuntu 9.10 _Karmic Koala_ - Release i386 (20091028.5) karmic/restricted Packages
Err cdrom://Ubuntu 9.04 _Jaunty Jackalope_ - Release i386 (20090420.1) jaunty/main Packages
  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
Err cdrom://Ubuntu 9.04 _Jaunty Jackalope_ - Release i386 (20090420.1) jaunty/restricted Packages
  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
Err cdrom://Ubuntu 9.10 _Karmic Koala_ - Release i386 (20091028.5) karmic/main Packages
  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
Err cdrom://Ubuntu 9.10 _Karmic Koala_ - Release i386 (20091028.5) karmic/restricted Packages
  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
Ign http://www.geekconnection.org karmic/ Release.gpg
Ign http://www.geekconnection.org karmic/ Release
Ign http://www.geekconnection.org karmic/ Packages
Get:1 http://security.ubuntu.com karmic-security Release.gpg [198B]
Get:2 http://us.archive.ubuntu.com karmic Release.gpg [189B]
Get:3 http://us.archive.ubuntu.com karmic-updates Release.gpg [198B]
Ign http://www.geekconnection.org karmic/ Packages
Get:4 http://archive.canonical.com karmic Release.gpg [198B]
Get:5 http://fr.archive.ubuntu.com karmic-backports Release.gpg [198B]
Get:6 http://ppa.launchpad.net karmic Release.gpg [316B]
Get:7 http://www.geekconnection.org karmic/ Packages [956B]
Get:8 http://security.ubuntu.com karmic-security Release [51.3kB]
Get:9 http://us.archive.ubuntu.com karmic Release [65.9kB]
Get:10 http://archive.canonical.com karmic Release [9359B]
Get:11 http://fr.archive.ubuntu.com karmic-backports Release [44.1kB]
Get:12 http://ppa.launchpad.net karmic Release [16.0kB]
Ign http://ppa.launchpad.net karmic Release
Get:13 http://archive.canonical.com karmic/partner Packages [5179B]
Get:14 http://ppa.launchpad.net karmic/main Packages [4908B]
Get:15 http://security.ubuntu.com karmic-security/universe Packages [102kB]
Get:16 http://us.archive.ubuntu.com karmic-updates Release [51.3kB]
Get:17 http://us.archive.ubuntu.com karmic/main Packages [1353kB]
Get:18 http://fr.archive.ubuntu.com karmic-backports/main Packages [70.1kB]
Get:19 http://security.ubuntu.com karmic-security/main Packages [231kB]
Get:20 http://fr.archive.ubuntu.com karmic-backports/restricted Packages [14B]
Get:21 http://fr.archive.ubuntu.com karmic-backports/universe Packages [28.5kB]
Get:22 http://security.ubuntu.com karmic-security/multiverse Packages [7050B]
Get:23 http://security.ubuntu.com karmic-security/restricted Packages [14B]
Get:24 http://fr.archive.ubuntu.com karmic-backports/multiverse Packages [14B]
Get:25 http://us.archive.ubuntu.com karmic/universe Packages [5133kB]
Get:26 http://us.archive.ubuntu.com karmic/restricted Packages [7971B]
Get:27 http://us.archive.ubuntu.com karmic/multiverse Packages [190kB]
Get:28 http://us.archive.ubuntu.com karmic-updates/universe Packages [194kB]
Get:29 http://us.archive.ubuntu.com karmic-updates/main Packages [346kB]
Get:30 http://us.archive.ubuntu.com karmic-updates/multiverse Packages [13.8kB]
Get:31 http://us.archive.ubuntu.com karmic-updates/restricted Packages [1631B]
Fetched 7928kB in 1min 2s (126kB/s)
W: GPG error: http://ppa.launchpad.net karmic Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 7128ECA7175F1ACE
W: Failed to fetch cdrom://Ubuntu 9.04 _Jaunty Jackalope_ - Release i386 (20090420.1)/dists/jaunty/main/binary-i386/Packages.gz Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs

W: Failed to fetch cdrom://Ubuntu 9.04 _Jaunty Jackalope_ - Release i386 (20090420.1)/dists/jaunty/restricted/binary-i386/Packages.gz Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs

W: Failed to fetch cdrom://Ubuntu 9.10 _Karmic Koala_ - Release i386 (20091028.5)/dists/karmic/main/binary-i386/Packages.gz Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs

W: Failed to fetch cdrom://Ubuntu 9.10 _Karmic Koala_ - Release i386 (20091028.5)/dists/karmic/restricted/binary-i386/Packages.gz Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs

E: Some index files failed to download, they have been ignored, or old ones used instead.
dmg@krikit:~$ sudo dpkg --clear-avail
dmg@krikit:~$ sudo dpkg --configure -a
Processing triggers for man-db ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
dmg@krikit:~$ 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.
dmg@krikit:~$ 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.
dmg@krikit:~$ LANG=C;sudo apt-get update -o APT::Cache-Limit=25165824 && sudo apt-get dist-upgrade
Ign cdrom://Ubuntu 9.04 _Jaunty Jackalope_ - Release i386 (20090420.1) jaunty Release.gpg
Ign cdrom://Ubuntu 9.10 _Karmic Koala_ - Release i386 (20091028.5) karmic Release.gpg
Ign cdrom://Ubuntu 9.04 _Jaunty Jackalope_ - Release i386 (20090420.1) jaunty Release
Ign cdrom://Ubuntu 9.10 _Karmic Koala_ - Release i386 (20091028.5) karmic Release
Ign cdrom://Ubuntu 9.04 _Jaunty Jackalope_ - Release i386 (20090420.1) jaunty/main Packages
Ign cdrom://Ubuntu 9.04 _Jaunty Jackalope_ - Release i386 (20090420.1) jaunty/restricted Packages
Ign cdrom://Ubuntu 9.10 _Karmic Koala_ - Release i386 (20091028.5) karmic/main Packages
Ign cdrom://Ubuntu 9.10 _Karmic Koala_ - Release i386 (20091028.5) karmic/restricted Packages
Ign cdrom://Ubuntu 9.04 _Jaunty Jackalope_ - Release i386 (20090420.1) jaunty/main Packages
Ign cdrom://Ubuntu 9.04 _Jaunty Jackalope_ - Release i386 (20090420.1) jaunty/restricted Packages
Ign cdrom://Ubuntu 9.10 _Karmic Koala_ - Release i386 (20091028.5) karmic/main Packages
Ign cdrom://Ubuntu 9.10 _Karmic Koala_ - Release i386 (20091028.5) karmic/restricted Packages
Err cdrom://Ubuntu 9.04 _Jaunty Jackalope_ - Release i386 (20090420.1) jaunty/main Packages
  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
Err cdrom://Ubuntu 9.04 _Jaunty Jackalope_ - Release i386 (20090420.1) jaunty/restricted Packages
  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
Err cdrom://Ubuntu 9.10 _Karmic Koala_ - Release i386 (20091028.5) karmic/main Packages
  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
Err cdrom://Ubuntu 9.10 _Karmic Koala_ - Release i386 (20091028.5) karmic/restricted Packages
  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
Ign http://www.geekconnection.org karmic/ Release.gpg
Ign http://www.geekconnection.org karmic/ Release
Ign http://www.geekconnection.org karmic/ Packages
Hit http://us.archive.ubuntu.com karmic Release.gpg
Hit http://us.archive.ubuntu.com karmic-updates Release.gpg
Hit http://archive.canonical.com karmic Release.gpg
Hit http://security.ubuntu.com karmic-security Release.gpg
Get:1 http://ppa.launchpad.net karmic Release.gpg [316B]
Hit http://fr.archive.ubuntu.com karmic-backports Release.gpg
Ign http://www.geekconnection.org karmic/ Packages
Hit http://www.geekconnection.org karmic/ Packages
Hit http://us.archive.ubuntu.com karmic Release
Hit http://archive.canonical.com karmic Release
Hit http://security.ubuntu.com karmic-security Release
Get:2 http://ppa.launchpad.net karmic Release [16.0kB]
Hit http://fr.archive.ubuntu.com karmic-backports Release
Ign http://ppa.launchpad.net karmic Release
Hit http://us.archive.ubuntu.com karmic-updates Release
Hit http://archive.canonical.com karmic/partner Packages
Hit http://security.ubuntu.com karmic-security/universe Packages
Hit http://ppa.launchpad.net karmic/main Packages
Hit http://fr.archive.ubuntu.com karmic-backports/main Packages
Hit http://us.archive.ubuntu.com karmic/main Packages
Hit http://us.archive.ubuntu.com karmic/universe Packages
Hit http://us.archive.ubuntu.com karmic/restricted Packages
Hit http://us.archive.ubuntu.com karmic/multiverse Packages
Hit http://security.ubuntu.com karmic-security/main Packages
Hit http://security.ubuntu.com karmic-security/multiverse Packages
Hit http://security.ubuntu.com karmic-security/restricted Packages
Hit http://fr.archive.ubuntu.com karmic-backports/restricted Packages
Hit http://fr.archive.ubuntu.com karmic-backports/universe Packages
Hit http://fr.archive.ubuntu.com karmic-backports/multiverse Packages
Hit http://us.archive.ubuntu.com karmic-updates/universe Packages
Hit http://us.archive.ubuntu.com karmic-updates/main Packages
Hit http://us.archive.ubuntu.com karmic-updates/multiverse Packages
Hit http://us.archive.ubuntu.com karmic-updates/restricted Packages
Fetched 317B in 1s (268B/s)
W: GPG error: http://ppa.launchpad.net karmic Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 7128ECA7175F1ACE
W: Failed to fetch cdrom://Ubuntu 9.04 _Jaunty Jackalope_ - Release i386 (20090420.1)/dists/jaunty/main/binary-i386/Packages.gz Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs

W: Failed to fetch cdrom://Ubuntu 9.04 _Jaunty Jackalope_ - Release i386 (20090420.1)/dists/jaunty/restricted/binary-i386/Packages.gz Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs

W: Failed to fetch cdrom://Ubuntu 9.10 _Karmic Koala_ - Release i386 (20091028.5)/dists/karmic/main/binary-i386/Packages.gz Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs

W: Failed to fetch cdrom://Ubuntu 9.10 _Karmic Koala_ - Release i386 (20091028.5)/dists/karmic/restricted/binary-i386/Packages.gz Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs

E: Some index files failed to download, they have been ignored, or old ones used instead.
dmg@krikit:~$

I have Ubuntu 10.04 Alternative CD at hand.

Much user software is installed that I would prefer *not* to lose :)

mni thanx

dmg

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu update-manager Edit question
Assignee:
No assignee Edit question
Solved by:
Manfred Hampl
Solved:
Last query:
Last reply:
Revision history for this message
Best Manfred Hampl (m-hampl) said :
#1

Your current system settings are not 100% clean, and that should be corrected before attempting to upgrade to a higher release.

1. error messages about CD-Roms:
To correct that start update-manager, click on 'settings' and unselect all references to CDs in the first tab and in the second tab.

2. error message NO_PUBKEY 7128ECA7175F1ACE
To correct that open a terminal and issue the follwing command:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 7128ECA7175F1ACE

3. To proceed further please open a terminal, issue the following commands and finally copy and paste all their output as done before:

uname -a
lsb-release -a
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade

Revision history for this message
d3j452 (kk7ss-frontier) said :
#2

Hi Manfred,

Many thanks for your reply..
1) Re- CD-Roms:- I had deleted them prior to your reply :)

2)Re: error message NO_PUBKEY:- I have done that, Thank you.

3) Managed to get the update done (also before your reply)
    Had to use "Smart Upgrade" due to 3rd party software

4) Output (as follows) now looks OK
:
dmg@krikit:~$ uname -a
Linux krikit 2.6.32-32-generic #62-Ubuntu SMP Wed Apr 20 21:54:21 UTC 2011 i686 GNU/Linux
dmg@krikit:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 10.04.2 LTS
Release: 10.04
Codename: lucid

Secondary Comment:
Installed leaded Firefox 3.6.17. This seems to occasionally freeze!
But I can live with that,

Again... many thanks for the rapid response :)

Dave G.