Ubuntu 12.04でアップデートをインストールするときやソフトウェアセンターからインストールするときにエラーメッセージが表示される

Ubuntu 12.04でアップデートをインストールするときやソフトウェアセンターからインストールするときにエラーメッセージが表示される

十分なディスク容量を備えた新しいコンピューターがあります。ソリッド ステート ブート ドライブと、ファイルを保存するための通常のディスクがあります。

主な問題は、ここ数週間、アップデートをインストールしたりソフトウェアセンターからダウンロードしようとすると、アップデートの通知が来ることです。これ、ソフトウェアこれ

この問題について何が起こっているのか、誰か分かる人はいますか?

最近、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.

これは私たちにとってはまったく意味をなさないことです。ファイル システムを調べるときに、どのドライブを調べているのかを把握するのに苦労していますが、ブックマークされているドライブ (ソリッド ステート ドライブだと思っていたドライブ) を調べてブートすると、それほど大きくないファイルはほとんど表示されません (120 GB 相当ではないことは確かです)。

ドライブについて: 約 1 か月前にコンピューターを購入したとき、会社に Ubuntu をインストールしてもらいました。会社は、私たちの要求に応じて、120 ギガバイトのソリッド ステート ドライブをブート ドライブにしました。3 T ドライブはマウントされているように見えましたが、Ubuntu をインストールした人たちは 3 テラバイトのドライブを私たちには見えないようにし、ドライブに保存できるように上記の元のメッセージで述べた修正を行うまで、ドライブを表示する権限が拒否されました。(ただし、"Lost and Found" フォルダーを表示する権限はまだ拒否されているようです。) 次に、ソリッド ステート ドライブに保存したファイルを 3 T ドライブにコピーし、ソリッド ステート ドライブから保存したファイルを削除して空き容量を確保しました。ソリッド ステート ドライブにはまだ十分な空き容量があります (もちろん、もう 1 つにも同じ空き容量があります)。

私たちが知る限り、エラー メッセージが表示されるソフトウェアと更新プログラムは実際にはインストールされているようですが (正しくインストールされているかどうかはわかりません)、毎回長いエラー メッセージが生成されます。両方のディスクにインストールしようとしているのか、それともそのようなものなのか、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

私がラップトップで解決した方法:

  1. 以前のカーネルイメージlinux-image-3.2.0-39を使用してラップトップを起動します。
  2. 最新のカーネルをアンインストールします。sudo apt-get purge linux-image-3.2.0-40-generic
  3. レガシーカーネルのアンインストール: イメージsudo apt-get purge linux-image-3.2.0-35-generic
  4. システムを更新します:sudo apt-get update && sudo apt-get upgrade
  5. ブートローダーを更新します:update-grub2

関連情報