कर्नेल अद्यतन करने में विफल


1

मेरे पास एक VPS में 2.6.18 के साथ एक नेटी लिनक्स सर्वर है।

मैं अब इसमें नया सॉफ्टवेयर स्थापित करना चाहता था जब मुझे एहसास हुआ कि नटी अब समर्थित नहीं है। इसलिए मैंने रिपॉजिटरी को वनरीक (डिबेट) में बदल दिया http://archive.ubuntu.com/ubuntu वनरिक मुख्य प्रतिबंधित ब्रह्मांड, आदि)

कई समस्याओं को हल करने के बाद (मुझे यहां दोपहर हो गई है) मुझे एहसास हुआ कि कुछ निर्भरताओं को भी एक नए कर्नेल की आवश्यकता थी। इसलिए मैंने कर्नेल को 3.0.0-32 में अपग्रेड करने का निर्णय लिया:

apt-get linux-image स्थापित करें

यहाँ यह विफल रहा। जब इसने मुझे ग्रब चीज़ को अपडेट करने के लिए कहा, तो उसने कहा कि यह मेरे स्टोरेज डिवाइस (/ 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)

मैंने हर जगह खोज की, लेकिन कोई जवाब नहीं मिला। मैंने यह भी जानने की कोशिश की कि "फिक्सरेट" क्यों विफल होता है, लेकिन यह भी नहीं है कि यह क्या करता है या यह कैसे काम करता है इसके बारे में दस्तावेज नहीं है ...

कोई उपाय?

अतिरिक्त जानकारी:

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

जाहिरा तौर पर नया कर्नेल स्थापित है और ग्रब इसे खोजने में सक्षम है। लेकिन मैं वास्तव में अपने सर्वर को रिबूट करने से डरता हूं, क्योंकि ग्रब काम नहीं करेगा और मेरी मशीन को बूट करेगा।

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
}

जवाबों:


1

मुझे लगता है कि यह संभव नहीं है।

मैं इस 'हुक' को छोड़ कर, गैर-निष्पादन योग्य (chmod -x) के रूप में इस 'हुक' को छोड़ कर / usr / share / initramfs-tools / हुक / fixrtc के माध्यम से प्राप्त करने में कामयाब रहा। लेकिन तब यह शिकायत हुई जब उन्होंने अपडेट-ग्रब किया।

थोड़ी देर बाद, मुझे एहसास हुआ कि मेरी मशीन में कोई कर्नेल स्थापित नहीं था। हाँ, मैं अभी भी बिल्कुल भी समझ नहीं पा रहा हूँ कि linux मशीन बिना linux core के कैसे काम कर सकती है, लेकिन मुझे लगता है कि यह VPS की चीज़ है।

मेरा VPS एक कलाप्रवीण व्यक्ति है (जैसा कि मैं माउंट - & gt; / dev / vzfs में देख सकता हूं, जिसमें vzfs फाइलसिस्टम है (ext3 की तरह "सामान्य" नहीं), और से https://serverfault.com/questions/158323/no-grub-on-vps EEAA के जवाब से ऐसा लगता है कि मैं अपना कर्नेल नहीं चुन सकता।

इसलिए मैंने कर्नेल को अनइंस्टॉल कर दिया और अब / बूट खाली दिखता है जैसे यह पहले था। बस एक और सर्वर पर स्विच करना होगा (यह एक अच्छा होने के लिए बहुत सस्ता था ...)

हमारी साइट का प्रयोग करके, आप स्वीकार करते हैं कि आपने हमारी Cookie Policy और निजता नीति को पढ़ और समझा लिया है।
Licensed under cc by-sa 3.0 with attribution required.