У меня есть Natty Linux-сервер с Linux 2.6.18 в VPS.
Я хотел установить новое программное обеспечение сейчас, когда понял, что Natty больше не поддерживается. Поэтому я изменил репозитории на Oneiric (deb http://archive.ubuntu.com/ubuntu oneiric, основная ограниченная вселенная и т.д.)
После решения многих проблем (я был здесь весь день) я понял, что для некоторых зависимостей также требуется более новое ядро. Поэтому я решил обновить ядро до 3.0.0-32:
apt-get установить linux-образ
Здесь это не удалось. Когда он попросил меня обновить grub, он сказал, что не может обнаружить файловую систему моего устройства хранения (/dev/vzfs), и теперь я застрял здесь:
root@server1:/tmp# apt-get install linux-image
Reading package lists... Done
Building dependency tree
Reading state information... Done
linux-image is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 351 not upgraded.
3 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? Y
Setting up linux-image-3.0.0-32-generic (3.0.0-32.51) ...
Running depmod.
update-initramfs: Generating /boot/initrd.img-3.0.0-32-generic
E: /usr/share/initramfs-tools/hooks/fixrtc failed with return 1. # <===== HERE
update-initramfs: failed for /boot/initrd.img-3.0.0-32-generic
Failed to create initrd image.
dpkg: error processing linux-image-3.0.0-32-generic (--configure):
subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of linux-image-generic:
linux-image-generic depends on linux-image-3.0.0-32-generic; however:
Package linux-image-3.0.0-32-generic is not configured yet.
dpkg: error processing linux-image-generic (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-image:
linux-image depends on linux-image-generic (= 3.0.0.32.36); however:
Package linux-image-generic is not configured yet.
dpkg: error processing linux-image (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
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.0.0-32-generic
linux-image-generic
linux-image
E: Sub-process /usr/bin/dpkg returned an error code (1)
Я искал везде, но не смог найти ответа. Я даже пытался найти информацию о том, почему "fixrtc" не работает, но нет даже документации о том, что он делает или как он работает ...
Любая идея?
Дополнительная информация:
root@server1:/tmp# update-grub Generating grub.cfg ... Found linux image: /boot/vmlinuz-3.0.0-32-generic /usr/sbin/grub-probe: error: no such disk. /usr/sbin/grub-probe: error: no such disk. unshare failed: Operation not permitted Cannot find list of partitions! (Try mounting /sys.) done
Судя по всему, новое ядро установлено, и grub может его найти. Но я действительно боюсь перезагрузить мой сервер на случай, если grub не сработает и не загрузит мою машину.
root@server1:/sys# mount /dev/vzfs on / type vzfs (rw) proc on /proc type proc (rw) sysfs on /sys type sysfs (rw) none on /dev/pts type devpts (rw)
Даже если мой файл grub.cfg в /boot /grub содержит:
menuentry 'Ubuntu, with Linux 3.0.0-32-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod gzio
linux /boot/vmlinuz-3.0.0-32-generic root=/dev/vzfs ro quiet splash vt.handoff=7
}
menuentry 'Ubuntu, with Linux 3.0.0-32-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod gzio
echo 'Loading Linux 3.0.0-32-generic ...'
linux /boot/vmlinuz-3.0.0-32-generic root=/dev/vzfs ro single nomodeset
}
