无法安装新软件,因为当前安装的软件有问题 - 尝试为 Ubuntu 安装 Loggerpro

无法安装新软件,因为当前安装的软件有问题 - 尝试为 Ubuntu 安装 Loggerpro

当我尝试安装时记录器,这是我收到的消息。我查看了论坛并尝试了以下命令:

sudo apt-get install --reinstall deconf

然后它说:unable to access package deconf 然后我试过了

sudo apt-get install --reinstall debconf

然后我得到了

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-3.16.0-60-generic : Depends: linux-image-3.16.0-60-generic but it is not going to be installed
 linux-image-extra-3.16.0-62-generic : Depends: linux-image-3.16.0-62-generic but it is not going to be installed
 linux-image-generic-lts-utopic : Depends: linux-image-3.16.0-62-generic but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

then I try apt-get install:

XXXXX:~$ apt-get -f install
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?

我现在该做什么?我不是电脑高手,所以如果你能用最简单的方式解释我下一步该做什么,我将不胜感激!

好的,我尝试了 John Orion 所建议的方法,得到了以下结果:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  account-plugin-windows-live libupstart1 linux-headers-3.16.0-30
  linux-headers-3.16.0-30-generic linux-image-3.16.0-30-generic
  linux-image-extra-3.16.0-30-generic
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  linux-image-3.16.0-60-generic linux-image-3.16.0-62-generic
Suggested packages:
  fdutils linux-lts-utopic-tools linux-headers-3.16.0-60-generic
The following NEW packages will be installed:
  linux-image-3.16.0-60-generic linux-image-3.16.0-62-generic
0 upgraded, 2 newly installed, 0 to remove and 195 not upgraded.
5 not fully installed or removed.
Need to get 0 B/31.0 MB of archives.
After this operation, 69.2 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
(Reading database ... 356758 files and directories currently installed.)
Preparing to unpack .../linux-image-3.16.0-62-generic_3.16.0-62.82~14.04.1_i386.deb ...
Done.
Unpacking linux-image-3.16.0-62-generic (3.16.0-62.82~14.04.1) ...
dpkg: error processing archive /var/cache/apt/archives/linux-image-3.16.0-62-generic_3.16.0-62.82~14.04.1_i386.deb (--unpack):
 cannot copy extracted data for './boot/vmlinuz-3.16.0-62-generic' to '/boot/vmlinuz-3.16.0-62-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 3.16.0-62-generic /boot/vmlinuz-3.16.0-62-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.16.0-62-generic /boot/vmlinuz-3.16.0-62-generic
Preparing to unpack .../linux-image-3.16.0-60-generic_3.16.0-60.80~14.04.1_i386.deb ...
Done.
Unpacking linux-image-3.16.0-60-generic (3.16.0-60.80~14.04.1) ...
dpkg: error processing archive /var/cache/apt/archives/linux-image-3.16.0-60-generic_3.16.0-60.80~14.04.1_i386.deb (--unpack):
 cannot copy extracted data for './boot/vmlinuz-3.16.0-60-generic' to '/boot/vmlinuz-3.16.0-60-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 3.16.0-60-generic /boot/vmlinuz-3.16.0-60-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.16.0-60-generic /boot/vmlinuz-3.16.0-60-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)

我仍然无法安装新软件,并收到相同的错误消息,并且依赖项无法满足:vstdrivers。

还有其他想法吗????

答案1

从诸如 之类的错误来看failed to write (No space left on device),您的硬盘上的 Ubuntu 分区似乎已满。也许您可以删除一些文件或将它们转移到另一个驱动器或分区,然后重新查看此问题。您也可以运行sudo apt-get clean以释放一些空间。

更新:由于错误与内核安装有关,因此您可能需要释放/boot目录中的空间,该目录可能与系统其余部分位于不同的分区中。请参阅此问题的答案以获取有关如何执行此操作的说明:由于 /boot 磁盘空间不足,无法升级

相关内容