我正在尝试 在我的 Linux 上安装 一个程序。跑步时:sudo apt-get install nams我不断得到:
阅读包裹清单...完成
构建依赖树
读取状态信息...完成
您可能需要运行“apt-get -f install”来更正这些:
以下软件包具有未满足的依赖项:
linux-image-extra-4.4.0-71-generic :
取决于:linux-image-4.4.0-71-generic 但它不会被安装
linux-image-generic :
取决于:linux-image-4.4.0-71-generic 但它不会被安装
E:未满足的依赖项。尝试不带软件包的“apt-get -f install”(或指定解决方案)。
我试图修复它: sudo apt-get -f install
我正在按照本指南安装 WPS Office,但是当我运行 dpkg 命令时,终端中会出现以下内容:
(Reading database ... 291111 files and directories currently installed.)
Preparing to unpack wps-office.deb ...
Unpacking wps-office (10.1.0.5672~a21) over (10.1.0.5672~a21) ...
dpkg: dependency problems prevent configuration of wps-office:
wps-office depends on libpng12-0; however:
Package libpng12-0 is not installed.
dpkg: error processing package wps-office (--install):
dependency problems - leaving unconfigured
Processing triggers for bamfdaemon (0.5.3+17.04.20170406-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for gnome-menus (3.13.3-6ubuntu5) ...
Processing triggers for desktop-file-utils (0.23-1ubuntu2) ...
Processing triggers for mime-support (3.60ubuntu1) …Run Code Online (Sandbox Code Playgroud) 我处于包裹点击被破坏的情况。我尝试了很多东西,但没有设法解决它。
$ sudo apt dist-upgrade
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.
click : Depends: python3-click-package (= 0.4.43+16.04.20160203-0ubuntu2) but 0.4.43+16.04.20170613-0ubuntu1 is installed
E: Unmet dependencies. Try using -f.
Run Code Online (Sandbox Code Playgroud)
Obvioulsysudo apt-get -f install并没有修复它。也不试图删除python3-click-package.
欢迎任何帮助。
$ apt-cache policy click python3-click-package
click:
Installed: 0.4.43+16.04.20160203-0ubuntu2
Candidate: 0.4.43+16.04.20170613-0ubuntu1
Version table:
0.4.43+16.04.20170613-0ubuntu1 500
500 http://gb.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
*** 0.4.43+16.04.20160203-0ubuntu2 500 …Run Code Online (Sandbox Code Playgroud) 我正在尝试在 Ubuntu 17.04 中安装 libgraph 库。该./configure文件是成功的,但当我make说它给出了一个错误:
Makefile:934: warning: overriding recipe for target 'libgraph.pc'
Makefile:409: warning: ignoring old recipe for target 'libgraph.pc'
make all-recursive
make[1]: Entering directory '/home/maverick/libgraph-1.0.2'
Makefile:934: warning: overriding recipe for target 'libgraph.pc'
Makefile:409: warning: ignoring old recipe for target 'libgraph.pc'
Making all in doc
make[2]: Entering directory '/home/maverick/libgraph-1.0.2/doc'
Making all in man
make[3]: Entering directory '/home/maverick/libgraph-1.0.2/doc/man'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/maverick/libgraph-1.0.2/doc/man'
make[3]: Entering directory '/home/maverick/libgraph-1.0.2/doc'
make[3]: Nothing to …Run Code Online (Sandbox Code Playgroud) 我在尝试安装 opencv 和 python 包时执行 sudo apt-get update 时遇到以下问题:
root@ubuntu:~# apt-get update
Ign:1 cdrom://Ubuntu 16.04.2 LTS _Xenial Xerus_ - Release amd64 (20170215.2) xenial InRelease
Hit:2 cdrom://Ubuntu 16.04.2 LTS _Xenial Xerus_ - Release amd64 (20170215.2) xenial Release Ign:4 http://dl.google.com/linux/chrome/deb stable InRelease Hit:5 http://dl.google.com/linux/chrome/deb stable Release Get:6 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB] Hit:8 http://archive.ubuntu.com/ubuntu xenial InRelease Get:9 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB] Get:10 http://security.ubuntu.com/ubuntu xenial-security/main amd64 DEP-11 Metadata [60.2 kB] Ign:11 http://www.openprinting.org/download/printdriver/debian lsb3.2 InRelease Get:12 http://security.ubuntu.com/ubuntu xenial-security/main DEP-11 64x64 Icons [57.6 kB] …Run Code Online (Sandbox Code Playgroud) 尝试sudo apt-get installClang++时出现以下错误:
Note, selecting 'clang-tidy-4.0' for regex 'Clang+'
Note, selecting 'python-clang-5.0' instead of 'python-clang-x.y'
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
Run Code Online (Sandbox Code Playgroud)
The following packages have unmet dependencies:
python-clang-3.5 : Breaks: python-clang-3.6 but 1:3.6.2-3ubuntu2 is to be …Run Code Online (Sandbox Code Playgroud) 我安装了 Gpartedsudo apt install gparted和sudo apt install -f。当我输入时sudo gparted,它告诉我:
Unit -.mount does not exist, proceeding anyway.
/usr/sbin/gpartedbin: error while loading shared libraries: libglibmm-2.4.so.1: cannot open shared object file: No such file or directory
Run Code Online (Sandbox Code Playgroud)
我使用的是 Ubuntu 18.04 LTS,这不是我第一次遇到与库相关的问题(请参阅我发布的另一个问题)。
我在 Ubuntu Software 中发现评论告诉我 GParted 不能在 18.04 上运行,所以我认为这是一个与版本相关的问题。
对于输出apt-cache policy gparted libgtkmm-2.4-1v5IS
gparted:
Installed: 0.30.0-3ubuntu1
Candidate: 0.30.0-3ubuntu1
Version table:
*** 0.30.0-3ubuntu1 500
500 https://mirrors.tuna.tsinghua.edu.cn/ubuntu bionic/main amd64 Packages
100 /var/lib/dpkg/status
libgtkmm-2.4-1v5:
Installed: 1:2.24.5-2
Candidate: …Run Code Online (Sandbox Code Playgroud) 我正在运行 Ubuntu 18.04。
像往常一样,我跑了:
sudo apt-get update
sudo apt-get upgrade
Run Code Online (Sandbox Code Playgroud)
但后来我收到以下错误:
阅读包裹清单...完成 构建依赖树 读取状态信息...完成 您可能需要运行 'apt --fix-broken install' 来纠正这些问题。 以下软件包具有未满足的依赖项: udev : 取决于: libudev1 (= 237-3ubuntu10.6) 但安装了 237-3ubuntu10.9 E:未满足的依赖项。尝试不带软件包的“apt --fix-broken install”(或指定解决方案)。
我试过sudo apt --fix-broken install但没有工作并返回此错误:
阅读包裹清单...完成 构建依赖树 读取状态信息...完成 更正依赖项...完成 将安装以下附加软件包: 开发者 将升级以下软件包: 开发者 1 个升级,0 个新安装,0 个删除,3 个未升级。 需要获得 0 B/1,101 kB 的档案。 此操作后,将使用 0 B 的额外磁盘空间。 你要继续吗?[是/否] E: 无效的存档成员标头 E:先前的错误适用于 /var/cache/apt/archives/udev_237-3ubuntu10.9_amd64.deb debconf:apt-extracttemplates 失败:没有那个文件或目录 (正在读取数据库...当前安装了 212689 个文件和目录。) 准备解压.../udev_237-3ubuntu10.9_amd64.deb ... 解压 libudev1:amd64 (237-3ubuntu10.9) over (237-3ubuntu10.9) ... 设置 libudev1:amd64 (237-3ubuntu10.9) …
Ettus 研究为 18.04提供了一个很大的依赖项列表,它几乎适用于从源代码编译 gnu radio。
cmake 给出了以下配置错误:
-- Python checking for PyQt5 - found
-- Checking for module 'Qt5Qwt6'
-- No package 'Qt5Qwt6' found
-- QWT Version: 6.1.3
-- Found Qwt: /usr/lib/libqwt.so
Run Code Online (Sandbox Code Playgroud)
然而,根据我拥有的软件包(似乎每个可能的版本......也许太多)我应该有它需要的东西。
apt-cache search qwt
libqwt-dev - Qt widgets library for technical applications (development, qt4)
libqwt-doc - Qt widgets library for technical applications (documentation)
libqwt-headers - Qt widgets library for technical applications (header files)
libqwt-qt5-6 - Qt widgets library for technical applications (runtime, qt5)
libqwt-qt5-dev - Qt …Run Code Online (Sandbox Code Playgroud) 我尝试在 Ubuntu 18.04 上安装 clang,但无法安装。我尝试sudo apt install clang并得到了这些结果:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
clang : Depends: clang-6.0 (>= …Run Code Online (Sandbox Code Playgroud) dependencies ×10
apt ×3
16.04 ×2
18.04 ×2
clang ×2
dpkg ×2
cmake ×1
command-line ×1
compiling ×1
gnuradio ×1
gparted ×1
libraries ×1
persistence ×1
python ×1
udev ×1
updates ×1
wps-office ×1