Errors during apt-get dist-upgrade

apmuthu

Renowned Member
Feb 26, 2009
868
11
83
Chennai - India & Singapore
github.com
Installed ProxMox v1.4 at the end of Oct 2009 and just did an update with
Code:
apt-get update
apt-get dist-upgrade
and got the following errors during the dist-upgrade:
Code:
Get:1 [URL]http://download.proxmox.com[/URL] lenny/pve pve-kernel-2.6.24-9-pve 2.6.24-18 [38.7MB]
Err [URL]http://security.debian.org[/URL] lenny/updates/main libgnutls26 2.4.2-6+lenny2
  404 Not Found [IP: 69.25.27.173 80]
Err [URL]http://security.debian.org[/URL] lenny/updates/main apache2-utils 2.2.9-10+lenny6
  404 Not Found [IP: 69.25.27.173 80]
Err [URL]http://security.debian.org[/URL] lenny/updates/main apache2-mpm-prefork 2.2.9-10+lenny6
  404 Not Found [IP: 69.25.27.173 80]
Err [URL]http://security.debian.org[/URL] lenny/updates/main apache2.2-common 2.2.9-10+lenny6
  404 Not Found [IP: 69.25.27.173 80]
Err [URL]http://security.debian.org[/URL] lenny/updates/main apache2 2.2.9-10+lenny6
  404 Not Found [IP: 69.25.27.173 80]
Err [URL]http://security.debian.org[/URL] lenny/updates/main libgd2-noxpm 2.0.36~rc1~dfsg-3+lenny1
  404 Not Found [IP: 69.25.27.173 80]
 
At the end of the dis-upgrade I get the error notification:
Code:
Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Attempted a fresh apt-get dist-upgrade:
Code:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following NEW packages will be installed:
  pve-kernel-2.6.24-9-pve
The following packages will be upgraded:
  apache2 apache2-mpm-prefork apache2-utils apache2.2-common libgd2-noxpm
  libgnutls26 pve-kernel pve-manager
8 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 2002kB/41.0MB of archives.
After this operation, 262kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 [URL="http://security.debian.org/"]http://security.debian.org[/URL] lenny/updates/main libgnutls26 2.4.2-6+lenny2 [507kB]
Get:2 [URL="http://security.debian.org/"]http://security.debian.org[/URL] lenny/updates/main apache2-utils 2.2.9-10+lenny6 [145kB]
Get:3 [URL="http://security.debian.org/"]http://security.debian.org[/URL] lenny/updates/main apache2-mpm-prefork 2.2.9-10+lenny6 [254kB]
Get:4 [URL="http://security.debian.org/"]http://security.debian.org[/URL] lenny/updates/main apache2.2-common 2.2.9-10+lenny6 [825kB]
Get:5 [URL="http://security.debian.org/"]http://security.debian.org[/URL] lenny/updates/main apache2 2.2.9-10+lenny6 [45.2kB]
Get:6 [URL="http://security.debian.org/"]http://security.debian.org[/URL] lenny/updates/main libgd2-noxpm 2.0.36~rc1~dfsg-3+lenny1 [226kB]
Fetched 2002kB in 1min5s (30.7kB/s)
Preconfiguring packages ...
(Reading database ... 40889 files and directories currently installed.)
Preparing to replace libgnutls26 2.4.2-6+lenny1 (using .../libgnutls26_2.4.2-6+lenny2_amd64.deb) ...
Unpacking replacement libgnutls26 ...
Preparing to replace apache2-utils 2.2.9-10+lenny4 (using .../apache2-utils_2.2.9-10+lenny6_amd64.deb) ...
Unpacking replacement apache2-utils ...
Preparing to replace apache2-mpm-prefork 2.2.9-10+lenny4 (using .../apache2-mpm-prefork_2.2.9-10+lenny6_amd64.deb) ...
Stopping web server: apache2 ... waiting .
Unpacking replacement apache2-mpm-prefork ...
Preparing to replace apache2.2-common 2.2.9-10+lenny4 (using .../apache2.2-common_2.2.9-10+lenny6_amd64.deb) ...
Unpacking replacement apache2.2-common ...
Preparing to replace apache2 2.2.9-10+lenny4 (using .../apache2_2.2.9-10+lenny6_all.deb) ...
Unpacking replacement apache2 ...
Preparing to replace libgd2-noxpm 2.0.36~rc1~dfsg-3 (using .../libgd2-noxpm_2.0.36~rc1~dfsg-3+lenny1_amd64.deb) ...
Unpacking replacement libgd2-noxpm ...
Selecting previously deselected package pve-kernel-2.6.24-9-pve.
Unpacking pve-kernel-2.6.24-9-pve (from .../pve-kernel-2.6.24-9-pve_2.6.24-18_amd64.deb) ...
Preparing to replace pve-kernel 2.6.24-16 (using .../pve-kernel_2.6.24-18_amd64.deb) ...
Unpacking replacement pve-kernel ...
Preparing to replace pve-manager 1.4-9 (using .../pve-manager_1.4-10_all.deb) ...
Unpacking replacement pve-manager ...
Processing triggers for man-db ...
Setting up libgnutls26 (2.4.2-6+lenny2) ...
Setting up apache2-utils (2.2.9-10+lenny6) ...
Setting up apache2.2-common (2.2.9-10+lenny6) ...
Setting up apache2-mpm-prefork (2.2.9-10+lenny6) ...
Starting web server: apache2.
Setting up apache2 (2.2.9-10+lenny6) ...
Setting up libgd2-noxpm (2.0.36~rc1~dfsg-3+lenny1) ...
Setting up pve-kernel-2.6.24-9-pve (2.6.24-18) ...
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Found kernel: /vmlinuz-2.6.24-9-pve
Found kernel: /vmlinuz-2.6.24-8-pve
Found kernel: /memtest86+.bin
Updating /boot/grub/menu.lst ... done
Setting up pve-kernel (2.6.24-18) ...
Setting up pve-manager (1.4-10) ...
Restarting PVE daemon: pvedaemon.
Restarting PVE Tunnel Server: pvetunnel.
Restarting PVE Cluster Server: pvemirror.
Restarting web server: apache2 ... waiting .
and returned to the shell prompt. I hope it works correctly now although I did the dist-upgrade without the --fix-missing parameter.
 
A subsequent
Code:
apt-get dist-upgrade --fix-missing
resulted in:
Code:
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.
 
# pveversion -v
Code:
pve-manager: 1.4-10 (pve-manager/1.4/4403)
qemu-server: 1.1-8
pve-kernel: 2.6.24-18
pve-qemu-kvm: 0.11.0-2
pve-firmware: 1
vncterm: 0.9-2
vzctl: 3.0.23-1pve3
vzdump: 1.2-5
vzprocps: 2.0.11-1dso2
vzquota: 3.0.11-1
 
And after a
Code:
shutdown -r now
it boots up well enough - unfortunately, the customisations done to files in the pve-manager are all gone! It would be nice if only the changed files were updated instead of overwriting the whole lot!