Upgrading 7.04 Fiesty Fawn fails, even w/ sources.list mod

Asked by Bill Ross

Following

  https://help.ubuntu.com/community/GutsyUpgrades

I added these lines to /etc/apt/sources.list

# added by Bill per
#https://help.ubuntu.com/community/GutsyUpgrades
#
deb http://old-releases.ubuntu.com/ubuntu/ feisty main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ feisty-updates main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ feisty-security main restricted universe multiverse

However update still fails with "Error during update" popup listing the same problem files as before (or similar):

Failed to fetch http://archive.ubuntu.com/ubuntu/dists/feisty/universe/binary-i386/Packages.gz 404 Not Found [IP: 91.189.88.31 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/dists/feisty/multiverse/binary-i386/Packages.gz 404 Not Found [IP: 91.189.88.31 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/dists/feisty/universe/source/Sources.gz 404 Not Found [IP: 91.189.88.31 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/dists/feisty/multiverse/source/Sources.gz 404 Not Found [IP: 91.189.88.31 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/feisty/main/binary-i386/Packages.gz 404 Not Found [IP: 91.189.88.31 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/feisty/restricted/binary-i386/Packages.gz 404 Not Found [IP: 91.189.88.31 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/feisty/main/source/Sources.gz 404 Not Found [IP: 91.189.88.31 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/feisty/restricted/source/Sources.gz 404 Not Found [IP: 91.189.88.31 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/feisty/universe/binary-i386/Packages.gz 404 Not Found [IP: 91.189.88.31 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/feisty/universe/source/Sources.gz 404 Not Found [IP: 91.189.88.31 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/feisty/multiverse/binary-i386/Packages.gz 404 Not Found [IP: 91.189.88.31 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/feisty/multiverse/source/Sources.gz 404 Not Found [IP: 91.189.88.31 80]

Also, per an answer to someone else asking this question, In System->Software_Sources-[Third_Party_Software] I see the three old-releases items I added to /etc/apt/sources.list.

Not sure what to do next.

Bill

Question information

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

Seems there is no 'feisty' directory on any current mirror. (but there are feisty-updates/feisty-security/feisty-backports and even feisty-proposed :)

I would try to leave only those old-releases (this server has a dists/feisty directory), should be enough.

Revision history for this message
Bill Ross (ross-cgl) said :
#2

# deb http://archive.ubuntu.com/ubuntu feisty universe multiverse
# deb-src http://archive.ubuntu.com/ubuntu feisty universe multiverse

Commented out all feisty entries like that and am past the problem, thanks!

Revision history for this message
Bill Ross (ross-cgl) said :
#3

Thanks Wrwrwr, that solved my question.

Revision history for this message
Bill Ross (ross-cgl) said :
#4

FWIW later during the updates I see:

--[this sounds important:]

Could not install 'update-manager-core'

The upgrade will continue but the 'update-manager-core' package may be in a not working state. Please consider submitting a bugreport about it.

subprocess post-installation script returned error exit status 1

--[not a problem to me:]

Could not install 'python-bittorrent'

The upgrade will continue but the 'python-bittorrent' package may be in a not working state. Please consider submitting a bugreport about it.

subprocess post-installation script returned error exit status 1

--

Could not install 'bittorrent'
dependency problems - leaving unconfigured

--

Could not install 'hwdb-client-common'
subprocess post-installation script returned error exit status 1

--

Could not install 'hwdb-client-gnome'
dependency problems - leaving unconfigured

--

I am auto-reporting bugs as prompted. Seems I need to close my browser now for the upgrade.

Revision history for this message
Bill Ross (ross-cgl) said :
#5
Revision history for this message
Bill Ross (ross-cgl) said :
#6

Updated existing/closed bug 'hwdb-client-gnome'

https://bugs.launchpad.net/ubuntu/+source/hwdb-client/+bug/188470

with log files that the filer of the bug never came back to add. Maybe it will be re-opened?

Revision history for this message
Wrwrwr (wrwrwr) said :
#7

Looking through your logs I would say this is the source of it all:

Setting up update-manager-core (1:0.81.3) ...
dpkg-query: parse error, in file `/var/lib/dpkg/updates/0009' near line 2 package `libc6':
 `triggers-pendi' is not allowed for third (status) word in `status' field
Traceback (most recent call last):
  File "/usr/bin/pycentral", line 1394, in <module>
    main()
  File "/usr/bin/pycentral", line 1388, in main
    rv = action.run(global_options)
  File "/usr/bin/pycentral", line 879, in run
    pkg.read_version_info()
  File "/usr/bin/pycentral", line 542, in read_version_info
    raise PyCentralError, "package has no field Python-Version"
__main__.PyCentralError: package has no field Python-Version
dpkg: error processing update-manager-core (--configure):
 subprocess post-installation script returned error exit status 1

This seems to be the most relevant bug report: https://bugs.launchpad.net/ubuntu/+source/update-manager/+bug/147429.

I would probably go for "apt-get dist-upgrade" or something similar, but it may make matters worse :)

Revision history for this message
Wrwrwr (wrwrwr) said :
#8

This should be fixed, the old-releases mirror probably didn't get updated. Here's a way closer bug, with some hints near the end: https://bugs.launchpad.net/ubuntu/+source/update-manager/+bug/146943 .

Revision history for this message
Bill Ross (ross-cgl) said :
#9

I tried this:

$ sudo apt-get dist-upgrade

and then

$ sudo apt-get install python-apt

with this result:
---
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.

Since you only requested a single operation it is extremely likely that
the package is simply not installable and a bug report against
that package should be filed.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
  python-apt: Depends: libapt-inst-libc6.6-6-1.1
              Depends: libapt-pkg-libc6.6-6-4.5
              Depends: libgcc1 (>= 1:4.2.1) but 1:4.1.2-0ubuntu4 is to be installed
              Depends: libstdc++6 (>= 4.2.1) but 4.1.2-0ubuntu4 is to be installed
              PreDepends: python-central (>= 0.5.15ubuntu2) but 0.5.12ubuntu4 is to be installed
E: Broken packages

---

I wonder if it is possible to do some sort of base install of gutsy or a more recent version without trashing user space?

Revision history for this message
Wrwrwr (wrwrwr) said :
#10

Unfortunately rather not unless you have a separate home partition (in which case you simply get rid of the whole system, possibly clearing home by removing unneeded configuration and install anew, pointing home to the partition during the process -- watching not to format it by a chance).

If the dist-upgrade didn't fail, maybe try to manually switch sources to the main Gutsy archive and hope for the best. What it says is that python-central is too old for what python-apt needs, but I've just checked that the old-releases only contains python-central 0.5.12ubuntu4, so it must be trying to install python-apt from Gutsy already.

Sources.list for Gutsy would look like this:
deb http://archive.ubuntu.com/ubuntu/ gutsy main universe restricted multiverse
deb http://security.ubuntu.com/ubuntu/ gutsy-security universe main restricted multiverse
deb http://archive.ubuntu.com/ubuntu/ gutsy-updates universe main restricted multiverse

If you were to make a new install, you should go for Hardy (8.04) -- this is the current long term support version, or even for Interpid (8.10), which is the most recent stable one. Hardy is very stable for me, even though I do a lot of weird things with it.

Revision history for this message
Bill Ross (ross-cgl) said :
#11

Using those gutsy entries in sources.list I get a popup "Can't guess meta-package / Your system does not contain a ubuntu-desktop, kubuntu-desktop, xubuntu-desktop or edubuntu-desktop package and it was not possible to detect which version of Ubuntu you are running.
 Please install one of the packages above first using synaptic or apt-get before proceeding."

$ sudo apt-get install ubuntu-desktop
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package ubuntu-desktop is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package ubuntu-desktop has no installation candidate

So leaning toward backup of user space then install of Hardy.

Revision history for this message
Wrwrwr (wrwrwr) said :
#12

The archive at http://archive.ubuntu.com/ubuntu/dists/gutsy/main/binary-i386 contains an ubuntu-desktop metapackage. Try doing "apt-get update".

Revision history for this message
Bill Ross (ross-cgl) said :
#13

I went one step further and found that kubuntu-desktop would install, but now it shows in the terminal window:

---
 Configuring kdm
A display manager is a program that provides graphical login
capabilities for the X Window System.
Only one display manager can manage a given X server, but multiple
display manager packages are installed. Please select which display
manager should run by default.
Multiple display managers can run simultaneously if they are configured
to manage different servers; to achieve this, configure the display
managers accordingly, edit each of their init scripts in /etc/init.d,
and disable the check for a default display manager. <Ok>
---
And on the next screen it wants to know whether I want gdm or kdm as my default display manager. What to choose?

Revision history for this message
Wrwrwr (wrwrwr) said :
#14

Kdm would be the default for Kubuntu (KDE), gdm is Gnome Display Manager -- the default for standard Ubuntu. Running gdm with kubuntu-desktop may be troublesome. (Note that the update thing above is a safe thing, generally package manager does that for you each time sources.list changes.)

Revision history for this message
Bill Ross (ross-cgl) said :
#15

I chose kdm. When things finished, another attempt at upgrading led to an invitation to do a partial upgrade, which ends with "Could not install the upgrades / The upgrade aborts now. Your system could be in an unusable state. A recovery will run now (dpkg --configure -a)."

All is backed up. The menu bar is gone from the top of my screen (so can't launch more upgrades :-), I presume because the window manager changed. Cmd windows remain open. Time to reboot?

Revision history for this message
Bill Ross (ross-cgl) said :
#16

Also ran "apt-get update" :
Get:1 http://archive.ubuntu.com gutsy Release.gpg [191B]
Ign http://archive.ubuntu.com gutsy/main Translation-en_US
Get:2 http://security.ubuntu.com gutsy-security Release.gpg [189B]
Ign http://security.ubuntu.com gutsy-security/universe Translation-en_US
Ign http://archive.ubuntu.com gutsy/universe Translation-en_US
Ign http://archive.ubuntu.com gutsy/restricted Translation-en_US
Ign http://archive.ubuntu.com gutsy/multiverse Translation-en_US
Get:3 http://archive.ubuntu.com gutsy-updates Release.gpg [189B]
Ign http://archive.ubuntu.com gutsy-updates/universe Translation-en_US
Ign http://archive.ubuntu.com gutsy-updates/main Translation-en_US
Ign http://archive.ubuntu.com gutsy-updates/restricted Translation-en_US
Ign http://archive.ubuntu.com gutsy-updates/multiverse Translation-en_US
Ign http://security.ubuntu.com gutsy-security/main Translation-en_US
Ign http://security.ubuntu.com gutsy-security/restricted Translation-en_US
Ign http://security.ubuntu.com gutsy-security/multiverse Translation-en_US
Hit http://security.ubuntu.com gutsy-security Release
Hit http://archive.ubuntu.com gutsy Release
Hit http://archive.ubuntu.com gutsy-updates Release
Hit http://security.ubuntu.com gutsy-security/universe Packages
Hit http://archive.ubuntu.com gutsy/main Packages
Hit http://security.ubuntu.com gutsy-security/main Packages
Hit http://security.ubuntu.com gutsy-security/restricted Packages
Hit http://security.ubuntu.com gutsy-security/multiverse Packages
Hit http://archive.ubuntu.com gutsy/universe Packages
Hit http://archive.ubuntu.com gutsy/restricted Packages
Hit http://archive.ubuntu.com gutsy/multiverse Packages
Hit http://archive.ubuntu.com gutsy-updates/universe Packages
Hit http://archive.ubuntu.com gutsy-updates/main Packages
Hit http://archive.ubuntu.com gutsy-updates/restricted Packages
Hit http://archive.ubuntu.com gutsy-updates/multiverse Packages
Fetched 3B in 1s (2B/s)
Reading package lists... Done

Is it hard to switch from kubuntu back to regular ubuntu?

Revision history for this message
Wrwrwr (wrwrwr) said :
#17

Is there any hint why it couldn't do that partial upgrade?

You can upgrade from terminal using "apt-get dist-upgrade" or "do-release-upgrade" in newer versions, also "apt-get upgrade" just installs most recent packages from the current release -- this is everyday use; "apt-get --fix-broken install" attempts to correct broken dependencies and "dpkg --configure -a" reconfigures all packages, these last two sometimes cause trouble, but considering where you are already, won't make things much worse :)

I've seen Gnome and KDE running side-by-side (one had to be started manually after the system start), and generally switching should be uninstalling kubuntu-desktop and installing ubuntu-desktop, but some problems, very similar to those you are experiencing now, are expected. Also, I suppose this is not a rare thing to use KDE applications -- together with a big part of the base system -- under Gnome.

Try doing that upgrade from a command window/terminal (you we'll have access to this even in a highly broken system, actually if the window manager doesn't start you'll only have this ;) at least you should have more information about what's failing.

Revision history for this message
Bill Ross (ross-cgl) said :
#18

It looks like the partial upgrade failure may have been on ircd-hybrid, as can be seen below:

apt-get dist-upgrade: just one thing:

Setting up ircd-hybrid (1:7.2.2.dfsg.2-3) ...
Starting Hybrid 7 IRC Server: ircd-hybridinvoke-rc.d: initscript ircd-hybrid, action "start" failed.
dpkg: error processing ircd-hybrid (--configure):
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 ircd-hybrid
E: Sub-process /usr/bin/dpkg returned an error code (1)

Same on apt-get --fix-broken install.

So maybe gutsy is installed ok and I just need to reboot to see kubuntu desktop? I don't care about ircd-hybrid.

Revision history for this message
Bill Ross (ross-cgl) said :
#19

Another wrinkle is that when I backed up to a USB stick, I accidentally pulled the stick without an eject. Now when I reinsert to back up one more thing, I get a popup "Cannot mount volume." Details: "mount:wrong fs type, bad option, bad superblock on /dev/sdb1, missing codepage or helper program, or other error." Trying 'dmesg | tail' I see:

$ dmesg | tail
[825667.741370] sdb: Mode Sense: 45 00 00 08
[825667.741374] sdb: assuming drive cache: write through
[825667.744863] SCSI device sdb: 3940479 512-byte hdwr sectors (2018 MB)
[825667.745698] sdb: Write Protect is off
[825667.745710] sdb: Mode Sense: 45 00 00 08
[825667.745713] sdb: assuming drive cache: write through
[825667.745722] sdb: sdb1
[825667.747854] sd 6:0:0:0: Attached scsi removable disk sdb
[825667.747986] sd 6:0:0:0: Attached scsi generic sg2 type 0
[825668.319187] FAT: Unrecognized mount option "usefree" or missing value

I was able to read the USB on a Windows box.

Revision history for this message
Wrwrwr (wrwrwr) said :
#20

I don't know what's going on with the stick, but someone else here might.

If you don't need that IRC server, just remove it: "apt-get remove ircd-hybrid", which will probably fail, so the next one is: "dpkg --remove ircd-hybrid", and if this still fails you can use some forcing options (we'll see why it fails).

Revision history for this message
Bill Ross (ross-cgl) said :
#21

apt-get remove ircd-hybrid went ok. Also I did apt-get autoremove. And I backed up the extra file by copying to another machine. Reboot now?

Revision history for this message
Wrwrwr (wrwrwr) said :
#22

Rebooting will probably leave you at the maintenance console (assuming that something is still amiss), this doesn't really stop you doing anything, but using internet may be hard (or a text browser ;)

Do another apt-get update, apt-get upgrade just in case. It is possible that you have a working Gutsy with KDE, but who knows :)

Revision history for this message
Bill Ross (ross-cgl) said :
#23

Here's what the upgrade picked up:

The following packages will be upgraded:
  hpijs hplip hplip-data hplip-gui

...so now it looks like reboot time?

(It looks like my apache config got changed during all the activity (a page that uses javascript to talk to cgi hangs firefox), plus my browser lacks favorites.)

Revision history for this message
Wrwrwr (wrwrwr) said :
#24

Apache config -- this is probable, files in /etc generally get reset when reconfiguring (e.g. with dpkg), also configuration from older versions might not be suitable for newer ones. However, I don't know why would your favourites disappear (unless the folder they are stored in changed in the meantime).

Just four packages, so it must be Gutsy, otherwise there would rather be a couple of hundreds. Not sure that all will work, but I guess there is a good chance.

Revision history for this message
Bill Ross (ross-cgl) said :
#25

Looks like kubuntu came up ok. I copied a cd successfully.

I don't see how to launch a console window? Doing [desktop/right-click/Run/xterm] gets me something, but I want the tabbable console windows that I had with regular ubuntu. Plus firefox..

Anyway, upgrade manager now offers me Hardy Heron, so I'm going to go for it.

Revision history for this message
Bill Ross (ross-cgl) said :
#26

With the Heron upgrade I am seeing stuff like this:

Setting up aspell (0.60.5-1ubuntu2) ...
X Error: BadDevice, invalid or uninitialized input device 158
  Major opcode: 146
  Minor opcode: 3
  Resource id: 0x0
Failed to open device
X Error: BadDevice, invalid or uninitialized input device 158
  Major opcode: 146
  Minor opcode: 3
  Resource id: 0x0
Failed to open device

...

Setting up kdm (4:3.5.10-0ubuntu1~hardy2) ...
Installing new version of config file /etc/init.d/kdm ...
Installing new version of config file /etc/kde3/kdm/kdmrc ...
Installing new version of config file /etc/kde3/kdm/Xsession ...
Installing new version of config file /etc/kde3/kdm/Xstartup ...
X Error: BadDevice, invalid or uninitialized input device 158
  Major opcode: 146
  Minor opcode: 3
  Resource id: 0x0
Failed to open device
X Error: BadDevice, invalid or uninitialized input device 158
  Major opcode: 146
  Minor opcode: 3
  Resource id: 0x0
Failed to open device

Setting up ksplash (4:3.5.10-0ubuntu1~hardy2) ...

Setting up libpoppler-qt2 (0.6.4-1ubuntu3.1) ...

...

I wonder if that will be a big problem?

Revision history for this message
Bill Ross (ross-cgl) said :
#27

No obvious consequence to the X errors.

My USB stick isn't mounting:

$ df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda1 76422592 16347720 56192768 23% /
varrun 253724 292 253432 1% /var/run
varlock 253724 0 253724 0% /var/lock
udev 253724 56 253668 1% /dev
devshm 253724 0 253724 0% /dev/shm
lrm 253724 39792 213932 16% /lib/modules/2.6.24-23-generic/volatile
$ dmesg|tail
[ 1056.847250] sd 2:0:0:0: [sdb] Write Protect is off
[ 1056.847264] sd 2:0:0:0: [sdb] Mode Sense: 45 00 00 08
[ 1056.847269] sd 2:0:0:0: [sdb] Assuming drive cache: write through
[ 1056.854871] sd 2:0:0:0: [sdb] 3940479 512-byte hardware sectors (2018 MB)
[ 1056.855788] sd 2:0:0:0: [sdb] Write Protect is off
[ 1056.855807] sd 2:0:0:0: [sdb] Mode Sense: 45 00 00 08
[ 1056.855812] sd 2:0:0:0: [sdb] Assuming drive cache: write through
[ 1056.855832] sdb: sdb1
[ 1056.858453] sd 2:0:0:0: [sdb] Attached SCSI removable disk
[ 1056.858588] sd 2:0:0:0: Attached scsi generic sg2 type 0
$

And on unplug dmesg shows:

[ 1522.842168] usb 4-4: USB disconnect, address 4

Any ideas? Does kubuntu need to be configured to recognise a USB stick?

Revision history for this message
Wrwrwr (wrwrwr) said :
#28

This X errors are most probably harmless, but you may try removing non-existent input devices from /etc/X11/xorg.conf (including ServerLayout section therein) if you'd like to get rid of them.

I guess you'll have a better chance for an adequate answer about the stick starting a new thread, because my sticks always just worked :) Probably output from "lsusb" and "fdisk -l" (l like in list, needs sudo to show all it should show) would also be informative. I'd don't think Kubuntu would need any additional configuration, but you may always try to mount the device manually, here's a how-to and some more info: https://help.ubuntu.com/community/Mount/USB.

Revision history for this message
Bill Ross (ross-cgl) said :
#29

Many thanks for all your help.

For the record, the saga continues here:

https://answers.launchpad.net/ubuntu/+question/58602
USB not working with upgrade to Gutsy Gibbon