![업데이트를 설치할 때 또는 Ubuntu 12.04의 소프트웨어 센터에서 오류 메시지](https://rvso.com/image/833359/%EC%97%85%EB%8D%B0%EC%9D%B4%ED%8A%B8%EB%A5%BC%20%EC%84%A4%EC%B9%98%ED%95%A0%20%EB%95%8C%20%EB%98%90%EB%8A%94%20Ubuntu%2012.04%EC%9D%98%20%EC%86%8C%ED%94%84%ED%8A%B8%EC%9B%A8%EC%96%B4%20%EC%84%BC%ED%84%B0%EC%97%90%EC%84%9C%20%EC%98%A4%EB%A5%98%20%EB%A9%94%EC%8B%9C%EC%A7%80.png)
디스크 공간이 충분한 새 컴퓨터가 있습니다. 솔리드 스테이트 부팅 드라이브와 파일을 저장하는 일반 디스크가 있습니다.
따라서 가장 중요한 일은 지난 몇 주 동안 소프트웨어 센터에서 업데이트를 설치하거나 다운로드하려고 할 때마다 업데이트를 받게 된다는 것입니다.이것및 소프트웨어의 경우이것.
문제와 관련하여 무슨 일이 일어나고 있는지 아는 사람이 있습니까?
저는 최근에 My Unity를 사용하여 디스플레이의 일부 설정을 변경했으며, 몇 주 전에 마침내 sudo chown user /mnt/data0
. 글로벌 메뉴도 비활성화했습니다. 그것이 문제의 원인이 될 수 있습니까? 덧붙여 말하면, 비디오 카드에 설정이 저장되지 않는 문제가 있어 처음 몇 주 동안 저장되었음에도 불구하고 컴퓨터를 켤 때마다 설정을 재설정해야 했습니다.
$ sudo dpkg --configure -a
Setting up initramfs-tools (0.99ubuntu13.1) ...
update-initramfs: deferring update (trigger activated)
Setting up linux-image-3.2.0-39-generic (3.2.0-39.62) ...
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-39-generic
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.2.0-39-generic /boot/vmlinuz-3.2.0-39-generic
run-parts: executing /etc/kernel/postinst.d/dkms 3.2.0-39-generic /boot/vmlinuz-3.2.0-39-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.2.0-39-generic /boot/vmlinuz-3.2.0-39-generic
update-initramfs: Generating /boot/initrd.img-3.2.0-39-generic
gzip: stdout: No space left on device
E: mkinitramfs failure cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.img-3.2.0-39-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-39-generic.postinst line 1010.
dpkg: error processing linux-image-3.2.0-39-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.2.0-39-generic; however:
Package linux-image-3.2.0-39-generic is not configured yet.
dpkg: error processing linux-image-generic (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-generic:
linux-generic depends on linux-image-generic (= 3.2.0.39.47); however:
Package linux-image-generic is not configured yet.
dpkg: error processing linux-generic (--configure):
dependency problems - leaving unconfigured
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-3.2.0-38-generic
gzip: stdout: No space left on device
E: mkinitramfs failure cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.img-3.2.0-38-generic with 1.
dpkg: error processing initramfs-tools (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
linux-image-3.2.0-39-generic
linux-image-generic
linux-generic
initramfs-tools
이 시점에서 우리는 다음과 같은 팝업을 받았습니다:
Low Disk Space
The volume "boot" has only 0 bytes disk space remaining. You can free up disk space by removing unused programs or files, or by moving files to another disk or partition.
이것은 우리에게 실제로 이해가 되지 않습니다. 파일 시스템을 볼 때 어떤 드라이브를 보고 있는지 파악하는 데 다소 어려움을 겪고 있지만 북마크된 드라이브를 보면/솔리드 스테이트 드라이브라고 생각한 다음 부팅에 들어가면 그다지 크지 않은 파일은 그리 많지 않습니다. 확실히 120GB의 가치는 아닙니다.
드라이브 정보: 약 한 달 전에 컴퓨터를 구입했을 때 회사에 Ubuntu를 설치하도록 했습니다. 그들은 우리의 요청에 따라 120GB 솔리드 스테이트 드라이브를 부팅 드라이브로 만들었습니다. 3T 드라이브가 마운트된 것처럼 보였지만 Ubuntu를 설치한 사람들은 3테라바이트 드라이브를 우리에게 표시하지 않았으며 위의 원본 메시지에서 언급한 수정 사항을 사용할 때까지 볼 수 있는 권한이 거부되었습니다. 드라이브에 저장합니다. (그래도 "Lost and Found" 폴더를 볼 수 있는 권한이 여전히 거부된 것 같습니다.) 그런 다음 솔리드 스테이트 드라이브에 저장한 파일을 3 T 드라이브에 복사하고 솔리드 스테이트 드라이브에 저장한 파일을 삭제했습니다. 공간을 확보하기 위한 상태 드라이브. 솔리드 스테이트 드라이브에는 여전히 많은 공간이 있습니다(물론 다른 드라이브도 마찬가지입니다).
우리가 알 수 있는 바에 따르면, 오류 메시지를 받는 소프트웨어와 업데이트는 실제로 설치되는 것처럼 보이지만(정확한지는 모르겠습니다) 매번 긴 오류 메시지가 생성됩니다. 두 디스크 또는 이와 유사한 것에 설치하려고 하는데 3 T 드라이브가 올바르게 설치/마운트되지 않았기 때문에 오류 메시지가 생성됩니까?
우리가 보여준 무지에 대해 유감스럽게 생각합니다. 나는 이 모든 것을 배우려고 노력하고 있지만 여전히 파일 시스템을 잘 이해하지 못하고 확실히 Ubuntu 초보자입니다.
2013년 4월 12일 업데이트: 안녕하세요, Nikki. 우리를 도와주셔서 정말 감사합니다. 글쎄, 우리는 마침내 단계를 구현하려고 시도했지만 실패했습니다. 우리는 다음을 얻었습니다(이 메시지에 맞추기 위해 일부를 삭제해야 했습니다):
user@ubuntu:~$ sudo apt-get clean && sudo apt-get autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
linux-generic : Depends: linux-headers-generic (= 3.2.0.39.47) but 3.2.0.40.48 is installed
E: Unmet dependencies. Try using -f.
user@ubuntu:~$ uname -r
3.2.0-38-generic
user@ubuntu:~$ dpkg --list | grep linux-image
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 linux-image-3.2.0-37-generic 3.2.0-37.58 Linux kernel image for version 3.2.0 on 64 bit x86 SMP
ii linux-image-3.2.0-38-generic 3.2.0-38.61 Linux kernel image for version 3.2.0 on 64 bit x86 SMP
iF linux-image-3.2.0-39-generic 3.2.0-39.62 Linux kernel image for version 3.2.0 on 64 bit x86 SMP
iF linux-image-3.2.0-40-generic 3.2.0-40.64 Linux kernel image for version 3.2.0 on 64 bit x86 SMP
iU linux-image-generic 3.2.0.39.47 Generic Linux kernel image
user@ubuntu:~$ sudo apt-get purge linux-image-3.2.0.29-generic
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'linux-image-3.2.0-29-generic' for regex 'linux-image-3.2.0.29-generic'
Note, selecting 'linux-image-3.2.0-29-generic-pae' for regex 'linux-image-3.2.0.29-generic'
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
linux-generic : Depends: linux-headers-generic (= 3.2.0.39.47) but 3.2.0.40.48 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
user@ubuntu:~$ sudo apt-get purge linux-image-3.2.0.37-generic
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'linux-image-3.2.0-37-generic' for regex 'linux-image-3.2.0.37-generic'
Note, selecting 'linux-image-3.2.0-37-generic-pae' for regex 'linux-image-3.2.0.37-generic'
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
linux-generic : Depends: linux-headers-generic (= 3.2.0.39.47) but 3.2.0.40.48 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
user@ubuntu:~$ sudo apt-get purge linux-image-3.2.0.39-generic
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'linux-image-3.2.0-39-generic' for regex 'linux-image-3.2.0.39-generic'
Note, selecting 'linux-image-3.2.0-39-generic-pae' for regex 'linux-image-3.2.0.39-generic'
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
linux-generic : Depends: linux-headers-generic (= 3.2.0.39.47) but 3.2.0.40.48 is to be installed
linux-image-generic : Depends: linux-image-3.2.0-39-generic but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
user@ubuntu:~$ sudo apt-get purge linux-image-3.2.0.40-generic
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'linux-image-3.2.0-40-generic' for regex 'linux-image-3.2.0.40-generic'
Note, selecting 'linux-image-3.2.0-40-generic-pae' for regex 'linux-image-3.2.0.40-generic'
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
linux-generic : Depends: linux-headers-generic (= 3.2.0.39.47) but 3.2.0.40.48 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
user@ubuntu:~$ sudo apt-get purge linux-image-generic
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
linux-generic : Depends: linux-image-generic (= 3.2.0.39.47) but it is not going to be installed
Depends: linux-headers-generic (= 3.2.0.39.47) but 3.2.0.40.48 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
user@ubuntu:~$ sudo update-grub2
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.2.0-40-generic
Found linux image: /boot/vmlinuz-3.2.0-39-generic
Found linux image: /boot/vmlinuz-3.2.0-38-generic
Found initrd image: /boot/initrd.img-3.2.0-38-generic
Found linux image: /boot/vmlinuz-3.2.0-37-generic
Found initrd image: /boot/initrd.img-3.2.0-37-generic
Found linux image: /boot/vmlinuz-3.2.0-29-generic
Found initrd image: /boot/initrd.img-3.2.0-29-generic
done
user@ubuntu:~$ sudo dpkg --configure -a
Setting up initramfs-tools (0.99ubuntu13.1) ...
update-initramfs: deferring update (trigger activated)
Setting up linux-image-3.2.0-40-generic (3.2.0-40.64) ...
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-39-generic
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.2.0-40-generic /boot/vmlinuz-3.2.0-40-generic
run-parts: executing /etc/kernel/postinst.d/dkms 3.2.0-40-generic /boot/vmlinuz-3.2.0-40-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.2.0-40-generic /boot/vmlinuz-3.2.0-40-generic
update-initramfs: Generating /boot/initrd.img-3.2.0-40-generic
gzip: stdout: No space left on device
E: mkinitramfs failure cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.img-3.2.0-40-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-40-generic.postinst line 1010.
dpkg: error processing linux-image-3.2.0-40-generic (--configure):
subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of linux-generic:
linux-generic depends on linux-headers-generic (= 3.2.0.39.47); however:
Version of linux-headers-generic on system is 3.2.0.40.48.
dpkg: error processing linux-generic (--configure):
dependency problems - leaving unconfigured
Setting up linux-image-3.2.0-39-generic (3.2.0-39.62) ...
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-40-generic
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.2.0-39-generic /boot/vmlinuz-3.2.0-39-generic
run-parts: executing /etc/kernel/postinst.d/dkms 3.2.0-39-generic /boot/vmlinuz-3.2.0-39-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.2.0-39-generic /boot/vmlinuz-3.2.0-39-generic
update-initramfs: Generating /boot/initrd.img-3.2.0-39-generic
gzip: stdout: No space left on device
E: mkinitramfs failure cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.img-3.2.0-39-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-39-generic.postinst line 1010.
dpkg: error processing linux-image-3.2.0-39-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.2.0-39-generic; however:
Package linux-image-3.2.0-39-generic is not configured yet.
dpkg: error processing linux-image-generic (--configure):
dependency problems - leaving unconfigured
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-3.2.0-38-generic
gzip: stdout: No space left on device
E: mkinitramfs failure cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.img-3.2.0-38-generic with 1.
dpkg: error processing initramfs-tools (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
linux-image-3.2.0-40-generic
linux-generic
linux-image-3.2.0-39-generic
linux-image-generic
initramfs-tools
user@ubuntu:~$
NIKKI: DF 명령 및 마지막 명령의 출력:
user@ubuntu:~$ df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda2 19222656 5545404 12700716 31% /
devtmpfs 16425020 8 16425012 1% /dev
none 3291972 996 3290976 1% /run
none 5120 0 5120 0% /run/lock
none 16459852 736 16459116 1% /run/shm
/dev/sda1 90195 89356 0 100% /boot
/dev/sda5 88370448 33795068 50086420 41% /home
/dev/sdb1 2884283608 184345072 2553425284 7% /mnt/data0
/dev/sdc1 488145616 404062976 84082640 83% /media/KAREN_~1DRI
user@ubuntu:~$ 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
[sudo] password for user:
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
linux-generic : Depends: linux-headers-generic (= 3.2.0.39.47) but 3.2.0.40.48 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
답변1
귀하의 페이스트빈에 다음과 같은 내용이 있는 것을 확인했습니다.
linux-image-generic 패키지가 아직 구성되지 않았습니다.
이렇게 해보고 업그레이드해 보세요
sudo dpkg --configure -a
sudo apt-get 설치 -f
sudo apt-get 업데이트 && sudo apt-get 업그레이드
계속하다:
공간이 부족한 것 같습니다. 달려보셨나요?
sudo apt-get clean && sudo apt-get autoremove
그런 다음 다음을 실행하여 현재 실행 중인 커널을 확인하는 것이 좋습니다.
uname -r
그것을 기억하고 설치한 모든 커널을 확인하십시오.
dpkg --list | grep linux-image
그런 다음 지금 실행 중인 커널을 제외한 다른 모든 커널을 제거하십시오.
sudo apt-get purge linux-image-x.x.x.x-generic
그리고 모든 실행을 삭제한 후
sudo update-grub2
그리고 마지막으로 커널 구성으로 위의 단계를 반복하십시오.
업데이트 2013년 4월 13일
안녕하세요. 걱정하지 마세요. 아직 이 문제를 해결할 수 있는 방법이 많이 있습니다. df
터미널에서의 명령 출력도 제공할 수 있나요 ? 또한 터미널에서 이 명령을 실행하여 "필요하지 않은 커널"을 삭제할 수 있는지 확인하십시오.
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
답변2
내 노트북에서 문제를 해결한 방법은 다음과 같습니다.
- 이전 커널 이미지 linux-image-3.2.0-39를 사용하여 노트북을 부팅합니다.
- 최신 커널을 제거합니다.
sudo apt-get purge linux-image-3.2.0-40-generic
- 레거시 커널 제거: 이미지
sudo apt-get purge linux-image-3.2.0-35-generic
- 시스템을 업데이트하세요:
sudo apt-get update && sudo apt-get upgrade
- 부트로더 업데이트:
update-grub2