PDA

View Full Version : [ubuntu] 12.04LTS upgrading - disk full - FATAL errors on upgrade



lookoff
November 12th, 2013, 02:00 AM
This is on a virtual server that I don't have physical access to.
I freed up some space but still getting the following errors:

#apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]?
Setting up linux-image-3.2.0-56-generic (3.2.0-56.86) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
The link /initrd.img is a dangling linkto /boot/initrd.img-3.2.0-56-generic
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.2.0-56-generic /boot/vmlinuz-3.2.0-56-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.2.0-56-generic /boot/vmlinuz-3.2.0-56-generic
update-initramfs: Generating /boot/initrd.img-3.2.0-56-generic
E: /usr/share/initramfs-tools/hooks/fixrtc failed with return 1.
update-initramfs: failed for /boot/initrd.img-3.2.0-56-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-3.2.0-56-generic.postinst line 1010.
dpkg: error processing linux-image-3.2.0-56-generic (--configure):
subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of linux-image-server:
linux-image-server depends on linux-image-3.2.0-56-generic; however:
Package linux-image-3.2.0-56-generic is not configured yet.
dpkg: error processing linux-image-server (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
linux-image-3.2.0-56-generic
linux-image-server
E: Sub-process /usr/bin/dpkg returned an error code (1)


# uname -r
2.6.32-042stab072.10

# dpkg --list | grep linux-image
iF linux-image-3.2.0-56-generic 3.2.0-56.86 Linux kernel image for version 3.2.0 on 64 bit x86 SMP
iU linux-image-server 3.2.0.56.66 Linux kernel image on Server Equipment.

# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/vzfs 15G 14G 1.3G 92% /
none 192M 4.0K 192M 1% /dev
none 39M 1.1M 38M 3% /run
none 5.0M 0 5.0M 0% /run/lock
none 192M 0 192M 0% /run/shm

I am new to the kernal installing world...

So far I have done:
# update-initramfs -u

# apt-get clean && sudo apt-get autoremove

# dpkg --configure -a


I tried the following from this forum:
#ln -s /usr/lib/x86_64-linux-gnu/librtmp.so.0 librtmp.so.0

# dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | xargs sudo apt-get -y purge


Thanks a lot

ian-weisser
November 12th, 2013, 02:40 AM
update-initramfs: Generating /boot/initrd.img-3.2.0-56-generic
E: /usr/share/initramfs-tools/hooks/fixrtc failed with return 1.
update-initramfs: failed for /boot/initrd.img-3.2.0-56-generic with 1.

That doesn't look like a normal "disk full" error.
Perhaps you did free enough space, but have a different error now.
One solution to this particular error is at http://askubuntu.com/questions/302951/update-initramfs-usr-share-initramfs-tools-hooks-fixrtc-failed-with-return-1





[...]
dpkg: error processing linux-image-3.2.0-56-generic (--configure):
[...]
# uname -r
2.6.32-042stab072.10

# dpkg --list | grep linux-image
iF linux-image-3.2.0-56-generic 3.2.0-56.86 Linux kernel image for version 3.2.0 on 64 bit x86 SMP
iU linux-image-server 3.2.0.56.66 Linux kernel image on Server Equipment.
[...]


Looks like you are running a not-stock-Ubuntu 2.6 kernel, but it's not listed among your kernel packages.
Did you install it yourself? (not a package?)
When time comes to remove it, will you be able to?

lookoff
November 12th, 2013, 12:06 PM
Unfortunately the OS was setup by the hosting provider..
That did allow me to update-initramfs.. I guess I'll ask them for the custom kernal, if it is custom, I was hoping I could get that particular one..
Thanks a lot