우분투: 업그레이드

우분투: 업그레이드

내 시스템에 어떤 종류의 문제가 있습니다(2GB RAM과 50GB HD를 갖춘 kvm vm입니다). apt-get을 사용하여 "linux-image-3.2.0-38-generic-pae"를 설치하려고 하면 장치에 남은 공간이 없다는 메시지가 나타납니다.

root@social:~/backup# apt-get dist-upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  linux-image-3.2.0-38-generic-pae
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
3 not fully installed or removed.
Need to get 0 B/38.2 MB of archives.
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.2.0-38-generic-pae (3.2.0-38.60) ...
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-38-generic-pae
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.2.0-38-generic-pae /boot/vmlinuz-3.2.0-38-generic-pae
update-initramfs: Generating /boot/initrd.img-3.2.0-38-generic-pae
cp: writing `/tmp/mkinitramfs_lUydlU/lib/modules/3.2.0-38-generic-pae/modules.order': **No space left on device**
cp: failed to extend `/tmp/mkinitramfs_lUydlU/lib/modules/3.2.0-38-generic-pae/modules.order': **No space left on device**
cp: writing `/tmp/mkinitramfs_lUydlU//lib/modules/3.2.0-38-generic-pae/kernel/drivers/hid/hid.ko': **No space left on device**
cp: failed to extend `/tmp/mkinitramfs_lUydlU//lib/modules/3.2.0-38-generic-pae/kernel/drivers/hid/hid.ko': **No space left on device**

이게 수백(?)줄에 걸쳐 계속되고, 모든 일은 다음과 같이 끝난다.

cp: writing `/tmp/mkinitramfs_lUydlU//bin/date': No space left on device
cp: failed to extend `/tmp/mkinitramfs_lUydlU//bin/date': No space left on device
E: /usr/share/initramfs-tools/hooks/fixrtc failed with return 1.
update-initramfs: failed for /boot/initrd.img-3.2.0-38-generic-pae 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-38-generic-pae.postinst line 1010.
dpkg: error processing linux-image-3.2.0-38-generic-pae (--configure):
 subprocess installed post-installation script returned error exit status 2
No apport report written because MaxReports is reached already
                                                              dpkg: dependency problems prevent     configuration of linux-image-generic-pae:
 linux-image-generic-pae depends on linux-image-3.2.0-38-generic-pae; however:
  Package linux-image-3.2.0-38-generic-pae is not configured yet.
dpkg: error processing linux-image-generic-pae (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
                                                                  dpkg: dependency problems     prevent configuration of linux-generic-pae:
 linux-generic-pae depends on linux-image-generic-pae (= 3.2.0.38.46); however:
  Package linux-image-generic-pae is not configured yet.
dpkg: error processing linux-generic-pae (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
                                                              Errors were encountered while processing:
 linux-image-3.2.0-38-generic-pae
 linux-image-generic-pae
 linux-generic-pae
E: Sub-process /usr/bin/dpkg returned an error code (1)

이제 - 디스크 공간은 문제가 되지 않습니다.

# df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/vda2        43G   12G   29G  30% /
udev            1.5G   12K  1.5G   1% /dev
tmpfs           606M  264K  605M   1% /run
none            5.0M     0  5.0M   0% /run/lock
none            1.5G     0  1.5G   0% /run/shm
/dev/vda1       894M   34M  812M   4% /boot
overflow        1.0M  1.0M     0 100% /tmp

#cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    nodev,noexec,nosuid 0       0
# / was on /dev/vda2 during installation
UUID=6914ebff-843a-4f33-bc5f-ca8bb4be17c5 /               ext4    errors=remount-ro 0       1
# /boot was on /dev/vda1 during installation
UUID=829b2017-2e30-4994-8689-1c79cca1e5c8 /boot           ext2    defaults        0       2
# swap was on /dev/vda3 during installation
UUID=678da9f1-fda7-4849-890b-fadfeacad083 none            swap    sw              0       0

그래서 - /tmp는 29기가의 여유 디스크 공간이 있는 파티션에 마운트되어 있고, 2기가의 램이 있는데, 그 중 "상단"에 따르면 대부분이 사용되지 않고, 4기가의 스왑 파티션이 있습니다... 문제가 보이지 않습니다: (

이걸 어떻게 실행시키나요?

답변1

여기에 문제에 대한 매우 유사한 설명이 있는 것 같습니다.

https://answers.launchpad.net/ubuntu/+question/34535

재부팅하는 것이 트릭인 것 같습니다. 그러나 그렇게 하기 전에 루트 수준 커널 심볼릭 링크와 /boot 내용이 올바른지 확인해야 합니다. 그렇지 않으면 부팅하지 못할 수도 있습니다.

관련 정보