root@mail / # apt-get install linux-image-3.2.0-57-generic
Reading package lists... Done
Building dependency tree
Reading state information... Done
linux-image-3.2.0-57-generic is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 151 not upgraded.
1 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-57-generic (3.2.0-57.87) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
image_magic: kimage=initrd.img, image_dest=/
image_name=initrd.img-3.2.0-57-generic, src_dir=/boot/ at /var/lib/dpkg/info/linux-image-3.2.0-57-generic.postinst line 748.
DEBUG: There is a symlink for initrd.img
Move?: kimage=initrd.img, image_dest=/,
image_name=initrd.img-3.2.0-57-generic, src_dir=/boot/ at /var/lib/dpkg/info/linux-image-3.2.0-57-generic.postinst line 391.
DEBUG: OK. We found symlink, and we should have a symlink here.
DEBUG: The link initrd.img points to (/boot/initrd.img-3.2.0-29-generic)
DEBUG: (/boot/initrd.img-3.2.0-29-generic) is really (/boot/initrd.img-3.2.0-29-generic)
DEBUG: We need to handle this.
DEBUG: ok, minimal swap is no-- so we move.
really_move_link: kimage=initrd.img, image_dest=/
image_name=initrd.img-3.2.0-57-generic, src_dir=/boot/ at /var/lib/dpkg/info/linux-image-3.2.0-57-generic.postinst line 491.
failed to move /initrd.img:Invalid cross-device link at /var/lib/dpkg/info/linux-image-3.2.0-57-generic.postinst line 495.
dpkg: error processing linux-image-3.2.0-57-generic (--configure):
subprocess installed post-installation script returned error exit status 18
Errors were encountered while processing:
linux-image-3.2.0-57-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@mail / # mount
/dev/md2 on / type xfs (rw,usrquota,prjquota)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
udev on /dev type devtmpfs (rw,mode=0755)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
none on /run/shm type tmpfs (rw,nosuid,nodev)
cgroup on /sys/fs/cgroup type tmpfs (rw,relatime,mode=755)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,relatime,cpuset)
cgroup on /sys/fs/cgroup/cpu type cgroup (rw,relatime,cpu)
cgroup on /sys/fs/cgroup/cpuacct type cgroup (rw,relatime,cpuacct)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,relatime,memory)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,relatime,devices)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,relatime,freezer)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,relatime,blkio)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,relatime,perf_event)
root@mail / # dpkg --list | grep linux
ii libselinux1 2.1.0-4.1ubuntu1 SELinux runtime shared libraries
ii linux-firmware 1.79.1 Firmware for Linux kernel drivers
ii linux-image-3.2.0-29-generic 3.2.0-29.46 Linux kernel image for version 3.2.0 on 64 bit x86 SMP
ii util-linux 2.20.1-1ubuntu3 Miscellaneous system utilities
root@mail / # apt-get install -f linux-image-3.2.0-57-generic
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
fdutils linux-doc-3.2.0 linux-source-3.2.0 linux-tools
The following NEW packages will be installed:
linux-image-3.2.0-57-generic
0 upgraded, 1 newly installed, 0 to remove and 151 not upgraded.
Need to get 0 B/38.6 MB of archives.
After this operation, 150 MB of additional disk space will be used.
Selecting previously unselected package linux-image-3.2.0-57-generic.
(Reading database ... 58864 files and directories currently installed.)
Unpacking linux-image-3.2.0-57-generic (from .../linux-image-3.2.0-57-generic_3.2.0-57.87_amd64.deb) ...
Done.
Setting up linux-image-3.2.0-57-generic (3.2.0-57.87) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
failed to move /initrd.img:Invalid cross-device link at /var/lib/dpkg/info/linux-image-3.2.0-57-generic.postinst line 495.
dpkg: error processing linux-image-3.2.0-57-generic (--configure):
subprocess installed post-installation script returned error exit status 18
Errors were encountered while processing:
linux-image-3.2.0-57-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@mail / # sed -n 495,500p /var/lib/dpkg/info/linux-image-3.2.0-57-generic.postinst
rename("$kimage", "$kimage.$$") ||
die "failed to move " . $image_dest . "$kimage:$!";
warn "mv $kimage $kimage.$$" if $DEBUG;
my $Old = $src_dir;
my $cwd;
rename("/", "initrd.img.12050")
Но как тогда уведомлять пользователя по почте о новых статьях