UbuntuラップトップにSudo apt-get install gpsd
を使用してgpsd
をインストールしようとしています。これを他の2台のUbuntuラップトップにインストールすると、問題ないように見えました。そこでは正常に動作します。
ここでは、Ubuntuがインストールされている3番目のラップトップでも同じことを行いました。ここで私はこのメッセージを受け取りました:
root@Lab-X230:/home/igor# Sudo apt-get install gpsd
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-image-extra-4.4.0-64-generic : Depends: linux-image-4.4.0-64-generic but it is not going to be installed
linux-image-extra-4.4.0-66-generic : Depends: linux-image-4.4.0-66-generic but it is not going to be installed
linux-image-extra-4.4.0-67-generic : Depends: linux-image-4.4.0-67-generic but it is not going to be installed
linux-image-generic : Depends: linux-image-4.4.0-67-generic but it is not going to be installed
linux-signed-image-4.4.0-64-generic : Depends: linux-image-4.4.0-64-generic (= 4.4.0-64.85) but it is not going to be installed
linux-signed-image-4.4.0-66-generic : Depends: linux-image-4.4.0-66-generic (= 4.4.0-66.87) but it is not going to be installed
linux-signed-image-4.4.0-67-generic : Depends: linux-image-4.4.0-67-generic (= 4.4.0-67.88) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
私もこれらのコマンドを試しました:
Sudo apt-get -f install
Sudo apt-get install gpsd
それでも、これらのエラーメッセージが返されました。
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
linux-image-4.4.0-64-generic linux-image-4.4.0-66-generic linux-image-4.4.0-67-generic
Suggested packages:
fdutils linux-doc-4.4.0 | linux-source-4.4.0 linux-tools
The following NEW packages will be installed:
linux-image-4.4.0-64-generic linux-image-4.4.0-66-generic linux-image-4.4.0-67-generic
0 upgraded, 3 newly installed, 0 to remove and 224 not upgraded.
16 not fully installed or removed.
Need to get 0 B/137 MB of archives.
After this operation, 199 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 588763 files and directories currently installed.)
Preparing to unpack .../linux-image-4.4.0-67-generic_4.4.0-67.88_AMD64.deb ...
Done.
Unpacking linux-image-4.4.0-67-generic (4.4.0-67.88) ...
dpkg: error processing archive /var/cache/apt/archives/linux-image-4.4.0-67-generic_4.4.0-67.88_AMD64.deb (--unpack):
cannot copy extracted data for './boot/System.map-4.4.0-67-generic' to '/boot/System.map-4.4.0-67-generic.dpkg-new': failed to write (No space left on device)
No apport report written because the error message indicates a disk full error
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 4.4.0-67-generic /boot/vmlinuz-4.4.0-67-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 4.4.0-67-generic /boot/vmlinuz-4.4.0-67-generic
Preparing to unpack .../linux-image-4.4.0-64-generic_4.4.0-64.85_AMD64.deb ...
Done.
Unpacking linux-image-4.4.0-64-generic (4.4.0-64.85) ...
dpkg: error processing archive /var/cache/apt/archives/linux-image-4.4.0-64-generic_4.4.0-64.85_AMD64.deb (--unpack):
cannot copy extracted data for './boot/vmlinuz-4.4.0-64-generic' to '/boot/vmlinuz-4.4.0-64-generic.dpkg-new': failed to write (No space left on device)
No apport report written because the error message indicates a disk full error
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 4.4.0-64-generic /boot/vmlinuz-4.4.0-64-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 4.4.0-64-generic /boot/vmlinuz-4.4.0-64-generic
Preparing to unpack .../linux-image-4.4.0-66-generic_4.4.0-66.87_AMD64.deb ...
Done.
Unpacking linux-image-4.4.0-66-generic (4.4.0-66.87) ...
dpkg: error processing archive /var/cache/apt/archives/linux-image-4.4.0-66-generic_4.4.0-66.87_AMD64.deb (--unpack):
cannot copy extracted data for './boot/vmlinuz-4.4.0-66-generic' to '/boot/vmlinuz-4.4.0-66-generic.dpkg-new': failed to write (No space left on device)
No apport report written because the error message indicates a disk full error
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 4.4.0-66-generic /boot/vmlinuz-4.4.0-66-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 4.4.0-66-generic /boot/vmlinuz-4.4.0-66-generic
Errors were encountered while processing:
/var/cache/apt/archives/linux-image-4.4.0-67-generic_4.4.0-67.88_AMD64.deb
/var/cache/apt/archives/linux-image-4.4.0-64-generic_4.4.0-64.85_AMD64.deb
/var/cache/apt/archives/linux-image-4.4.0-66-generic_4.4.0-66.87_AMD64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
このリンクから: Sudo apt-get install Steam error (彼は私と同じ問題を抱えていたため)。しかし、誰も助けなかった。
誰もがこの問題を見て、これに運がありますか?
あなたの質問からの抜粋:
...
Unpacking linux-image-4.4.0-67-generic (4.4.0-67.88) ...
dpkg: error processing archive /var/cache/apt/archives/linux-image-4.4.0-67-generic_4.4.0-67.88_AMD64.deb (--unpack):
cannot copy extracted data for './boot/System.map-4.4.0-67-generic' to '/boot/System.map-4.4.0-67-generic.dpkg-new': failed to write (No space left on device)
...
抜粋の最後の最後の行には(No space left on device)
と書かれているので、何かをインストールする前にディスクスペースを解放する必要があります。
df -h
を使用して、空き領域がなくなったドライブを見つけます。
ブートパーティションがいっぱいの場合、次のコマンドで古いカーネルイメージを削除できます。
dpkg --list | grep linux-image | awk '{ print $2 }' | sort -V | sed -n '/'`uname -r`'/q;p' | xargs Sudo apt-get -y purge
this answer からコピーされます。