我在升级时遇到问题
以下是一些报告
sudo apt-get upgrade
Errors were encountered while processing:
/var/cache/apt/archives/linux-image-3.2.0-44-generic-pae_3.2.0-44.69_i386.deb
server@philo:/$ sudo apt-get upgrade -f
The following NEW packages will be installed:
linux-image-3.2.0-44-generic-pae
E: Internal Error, No file name for libssl1.0.0
所以我尝试了这个...
server@philo:/mnt/halftb/media/Videos$ sudo dpkg --configure -a
Errors were encountered while processing:
linux-image-generic-pae
这是大量的输出...
(Reading database ... 80098 files and directories currently installed.)
Unpacking linux-image-3.2.0-44-generic-pae (from .../linux-image-3.2.0-44-generic-pae_3.2.0-44.69_i386.deb) ...
Done.
dpkg: error processing /var/cache/apt/archives/linux-image-3.2.0-44-generic-pae_3.2.0-44.69_i386.deb (--unpack):
failed in write on buffer copy for backend dpkg-deb during `./boot/vmlinuz-3.2.0-44-generic-pae': No space left on device
No apport report written because MaxReports is reached already
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-44-generic-pae /boot/vmlinuz-3.2.0-44-generic-pae
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.2.0-44-generic-pae /boot/vmlinuz-3.2.0-44-generic-pae
Preparing to replace libssl1.0.0 1.0.1-4ubuntu5.8 (using .../libssl1.0.0_1.0.1-4ubuntu5.9_i386.deb) ...
Unpacking replacement libssl1.0.0 ...
Errors were encountered while processing:
/var/cache/apt/archives/linux-image-3.2.0-44-generic-pae_3.2.0-44.69_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
server@philo:/mnt/halftb/media/Videos$ sudo apt-get upgrade -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following NEW packages will be installed:
linux-image-3.2.0-44-generic-pae
The following packages will be upgraded:
aptitude bash-completion cifs-utils cups cups-bsd cups-client cups-common cups-ppdc libasound2 libcups2 libcupscgi1 libcupsdriver1 libcupsimage2 libcupsmime1 libcupsppdc1
libdrm-intel1 libdrm-nouveau1a libdrm-radeon1 libdrm2 libgnutls26 libtiff4 linux-image-generic-pae linux-libc-dev openssl python-apt python-apt-common rsyslog smbfs
28 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
3 not fully installed or removed.
Need to get 0 B/46.8 MB of archives.
After this operation, 113 MB of additional disk space will be used.
Do you want to continue [Y/n]? Y
E: Internal Error, No file name for libssl1.0.0
server@philo:/mnt/halftb/media/Videos$ sudo dpkg --configure -a
Setting up libssl1.0.0 (1.0.1-4ubuntu5.9) ...
dpkg: dependency problems prevent configuration of linux-image-generic-pae:
linux-image-generic-pae depends on linux-image-3.2.0-43-generic-pae; however:
Package linux-image-3.2.0-43-generic-pae is not installed.
dpkg: error processing linux-image-generic-pae (--configure):
dependency problems - leaving unconfigured
Setting up linux-libc-dev (3.2.0-43.68) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Errors were encountered while processing:
linux-image-generic-pae
server@philo:/mnt/halftb/media/Videos$
编辑-附加:
server@philo:~$ sudo apt-get install libssl1.0.0
[sudo] password for server:
Reading package lists... Done
Building dependency tree
Reading state information... Done
libssl1.0.0 is already the newest version.
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
linux-image-generic-pae : Depends: linux-image-3.2.0-43-generic-pae but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
答案1
我遇到了同样的问题,结果是 /boot 空间不足:
因此,我进入 /boot 并发现了大量旧内核:
我删除了除最后三个之外的所有内容(只是为了有一些后备 :),然后再次运行 apt-get install 命令。这次成功了。
希望这有帮助,PS
编辑- 我粘贴了一些输出,但格式不正确,所以我将其删除了。
答案2
尝试这个:
sudo apt-get clean
sudo apt-get update
sudo apt-get dist-upgrade