
Ubuntu日本語フォーラム

ログインしていません。
ページ: 1
1.状況
linux-image-3.2.0-63-genericのアップデートに失敗し、その後suto apt-get -f installもできません。
その他いろいろやってみましたが改善しません。
対処の仕方を教えていただけると幸いです。
2.発端
Update Managerにkernelのアップデート通知が出ていたのでアップデートしたところ、
Update Managerが次のようなメッセージ(GUI)を出してアップデートに失敗しました。
/*------------------------------------------------------------------------------
The package system is broken
Check if you are using third party repositories. If so disable them, since they are a common source of problems.
Furthermore run the following command in a Terminal: apt-get install -f
▼ Details
The following packages have unmet dependencies:
linux-image-server: Depends: linux-image-3.2.0-63-generic but it is not installed
------------------------------------------------------------------------------*/
3.やってみたこと
apt-get -f installを実行すると、以下のようにエラーになってしまいます。
/*------------------------------------------------------------------------------
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following package was automatically installed and is no longer required:
libtommath0
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
linux-image-3.2.0-63-generic
Suggested packages:
fdutils linux-doc-3.2.0 linux-source-3.2.0 linux-tools
The following NEW packages will be installed:
linux-image-3.2.0-63-generic
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0 B/38.7 MB of archives.
After this operation, 150 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
(Reading database ... 601024 files and directories currently installed.)
Unpacking linux-image-3.2.0-63-generic (from .../linux-image-3.2.0-63-generic_3.2.0-63.95_amd64.deb) ...
Done.
dpkg: error processing /var/cache/apt/archives/linux-image-3.2.0-63-generic_3.2.0-63.95_amd64.deb (--unpack):
unable to create `/lib/modules/3.2.0-63-generic/kernel/drivers/video/svgalib.ko.dpkg-new' (while processing `./lib/modules/3.2.0-63-generic/kernel/drivers/video/svgalib.ko'): 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 3.2.0-63-generic /boot/vmlinuz-3.2.0-63-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.2.0-63-generic /boot/vmlinuz-3.2.0-63-generic
Errors were encountered while processing:
/var/cache/apt/archives/linux-image-3.2.0-63-generic_3.2.0-63.95_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
------------------------------------------------------------------------------*/
上記のメッセージ中の
「Use 'apt-get autoremove' to remove them.」
に従うと、以下のようになってしまいます。
/*------------------------------------------------------------------------------
ukko@ylijumala:~$ 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-image-server : Depends: linux-image-3.2.0-63-generic but it is not installed
E: Unmet dependencies. Try using -f.
------------------------------------------------------------------------------*/
また、同メッセージ中に
「unable to create `/lib/modules/3.2.0-63-generic/kernel/drivers/video/svgalib.ko.dpkg-new' (while processing `./lib/modules/3.2.0-63-generic/kernel/drivers/video/svgalib.ko'): No space left on device」
とあるので、
空き容量(sudo df --block-size=M)で見てみましたが、
/libに関係の空き容量が払底してはいないようです。
(/imgはISOの置き場所なのでギリギリまで使い切っていますが・・・)
/*------------------------------------------------------------------------------
Filesystem 1M-blocks Used Available Use% Mounted on
/dev/mapper/VG--root_usr-LV--root_usr 9387M 4954M 3956M 56% /
udev 3935M 1M 3935M 1% /dev
tmpfs 790M 2M 788M 1% /run
none 5M 0M 5M 0% /run/lock
none 3947M 1M 3947M 1% /run/shm
cgroup 3947M 0M 3947M 0% /sys/fs/cgroup
/dev/sda1 230M 80M 139M 37% /boot
/dev/mapper/VG--home-LV--home 9387M 1493M 7417M 17% /home
/dev/mapper/VG--var-LV--var 9387M 1159M 7751M 14% /var
/dev/mapper/VG--empty-LV--img 301635M 269821M 16508M 95% /img
/dev/mapper/VG--void-LV--samba 51200M 32108M 17087M 66% /samba
/home/ukko/.Private 9387M 1493M 7417M 17% /home/ukko
------------------------------------------------------------------------------*/
以前旧kernelイメージが/bootに残っていて同じような現象になったので、
旧イメージの削除(sudo apt-get purge linux-image~)を試みたのですが、
以下のようになって消せません。
/*------------------------------------------------------------------------------
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-server : Depends: linux-image-3.2.0-63-generic but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
------------------------------------------------------------------------------*/
purgeではなく、旧kernelイメージを個別にrmしてみましたが、
apt-get -f installの実行結果に変化はありませんでした。
4.環境
ubuntu 12.04 LTS DeskTop 64bitをインストールして今まで使ってきました。
uname -srvopの実行結果は以下の通りです。
/*------------------------------------------------------------------------------
Linux 3.2.0-61-generic #93-Ubuntu SMP Fri May 2 21:31:50 UTC 2014 x86_64 GNU/Linux
------------------------------------------------------------------------------*/
sudo lshw -shortの実行結果は以下の通りです。
/*------------------------------------------------------------------------------
H/W path Device Class Description
=========================================================
system KOUZIRONB (To be filled by O.E.M.)
/0 bus KOUZIRONB
/0/0 memory 64KiB BIOS
/0/4 memory 256KiB L1 cache
/0/5 memory 1MiB L2 cache
/0/6 memory 6MiB L3 cache
/0/7 memory 8GiB System Memory
/0/7/0 memory 4GiB SODIMM DDR3 Synchronous 1333 MHz (0.8 ns)
/0/7/1 memory DIMM [empty]
/0/7/2 memory 4GiB SODIMM DDR3 Synchronous 1333 MHz (0.8 ns)
/0/7/3 memory DIMM [empty]
/0/53 processor Intel(R) Core(TM) i7-2670QM CPU @ 2.20GHz
/0/100 bridge 2nd Generation Core Processor Family DRAM Controller
/0/100/1 bridge Xeon E3-1200/2nd Generation Core Processor Family PCI Express Root Port
/0/100/1/0 display GF108M [GeForce GT 540M]
/0/100/2 display 2nd Generation Core Processor Family Integrated Graphics Controller
/0/100/16 communication 6 Series/C200 Series Chipset Family MEI Controller #1
/0/100/1a bus 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2
/0/100/1b multimedia 6 Series/C200 Series Chipset Family High Definition Audio Controller
/0/100/1c bridge 6 Series/C200 Series Chipset Family PCI Express Root Port 1
/0/100/1c/0 bus uPD720200 USB 3.0 Host Controller
/0/100/1c.1 bridge 6 Series/C200 Series Chipset Family PCI Express Root Port 2
/0/100/1c.1/0 eth0 network RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
/0/100/1c.3 bridge 6 Series/C200 Series Chipset Family PCI Express Root Port 4
/0/100/1c.3/0 wlan0 network Centrino Wireless-N 130
/0/100/1d bus 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1
/0/100/1f bridge HM65 Express Chipset Family LPC Controller
/0/100/1f.2 scsi0 storage 6 Series/C200 Series Chipset Family 6 port SATA AHCI Controller
/0/100/1f.2/0 /dev/sda disk 750GB WDC WD7500BPVT-0
/0/100/1f.2/0/1 /dev/sda1 volume 237MiB EXT4 volume
/0/100/1f.2/0/2 /dev/sda2 volume 11GiB Linux swap / Solaris partition
/0/100/1f.2/0/3 /dev/sda3 volume 687GiB Extended partition
/0/100/1f.2/0/3/5 /dev/sda5 volume 18GiB Linux LVM Physical Volume partition
/0/100/1f.2/0/3/6 /dev/sda6 volume 46GiB Linux LVM Physical Volume partition
/0/100/1f.2/0/3/7 /dev/sda7 volume 46GiB Linux LVM Physical Volume partition
/0/100/1f.2/0/3/8 /dev/sda8 volume 465GiB Linux LVM Physical Volume partition
/0/100/1f.2/0/3/9 /dev/sda9 volume 100GiB Linux LVM Physical Volume partition
/0/100/1f.2/1 /dev/cdrom disk DVD-RAM UJ8B0
/0/100/1f.3 bus 6 Series/C200 Series Chipset Family SMBus Controller
/1 power Battery Name
/2 power Battery Name
/3 power Battery Name
/4 power Battery Name
/5 power To Be Filled By O.E.M.
/6 vnet1 network Ethernet interface
------------------------------------------------------------------------------*/
以上です。よろしくお願いいたします。
オフライン
最初の投稿をしたkznjです。
直接の原因がよく分からないのですが、なんとか対処しました。
解決に至った手順だけ残しておきます。
対処経過をみていただいて、原因についてのコメントをいただけると幸いです。
1)dpkg --status linux-image-3.2.0-63-genericで、パッケージ状態確認
/*------------------------------------------------------------------------------
Package: linux-image-3.2.0-63-generic
Status: install ok not installed
Priority: optional
Section: kernel
------------------------------------------------------------------------------*/
この状態だとパッケージとして削除できない。
(もちろんapt-get -f installはできない)
2)apt-get -f installに代えて
aptitude safe-upgradeを使い最新パッケージを強制イントスール
->その時点の最新パッケージをインストールエラーになるものを除いて
全てインストールするそうです。
3)dpkg --auditでパッケージのインストール経過を調べると
linux-image-serverが、linux-image-3.2.0-63-genericが未インストールにより
configureできてないことが判明。
4)sudo dpkg --configure -aを試みるが、
linux-image-3.2.0-63-genericが未インストールなのでconfigureできない。
/*------------------------------------------------------------------------------
dpkg: dependency problems prevent configuration of linux-image-server:
linux-image-server depends on linux-image-3.2.0-63-generic; however:
Package linux-image-3.2.0-63-generic is not installed.
dpkg: error processing linux-image-server (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
linux-image-server
------------------------------------------------------------------------------*/
5)sudo dpkg --remove linux-image-serverでlinux-image-serverをアンインストール
6)sudo apt-get -f installを実行してエラー無し。
/*------------------------------------------------------------------------------
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
------------------------------------------------------------------------------*/
7)(念のため)旧kernelイメージをpurgeする。
8)GUIのUpdate Managerにlinux-image-3.2.0-63-genericは現れないので
sudo apt-get install linux-image-3.2.0-63-genericで
linux-image-3.2.0-63-genericをインストールする。
9)linux-image-serverについては、現時点ではインストールを保留している。
(KVM上にある同一構成のubuntu 12.04 LTS Desktop 64bitにはインストールされていないため)
以上です。
オフライン
ページ: 1