标签: dependencies

尝试安装 php-zip - 即使我安装了 1.0.1,也出现 libzip4 dependency (>=1.0) 错误

我正在尝试安装 php zip 插件

我跑:

sudo apt-get install php-zip (also php7.0-zip) 
Run Code Online (Sandbox Code Playgroud)

我得到 libzip4 (>=1.0) 的依赖项缺失返回,但是当我尝试通过 apt-get 安装或更新 libzip4 时 - 它显示我已安装 1.0.1 (我认为它可能有包名称或 libzip4:i386 的别名-> 不确定这是否与这个问题有关,但与我安装的其他 php 插件相比,命名约定对我来说看起来很奇怪)。

带输出的终端命令:

sudo apt-get install php-zip
Run Code Online (Sandbox Code Playgroud)

正在读取软件包列表...已完成 构建依赖关系树
正在读取状态信息...已完成 请注意,选择“php7.0-zip”而不是“php-zip” 某些软件包无法安装。这可能意味着您请求了一种不可能的情况,或者如果您使用的是不稳定的发行版,某些所需的软件包尚未创建或已移出传入。以下信息可能有助于解决问题:

以下软件包具有未满足的依赖关系: php7.0-zip :依赖:libzip4 (>= 1.0) 但无法安装

E:无法纠正问题,您持有破损的包裹。

&&:

sudo apt-get install libzip4
Run Code Online (Sandbox Code Playgroud)

正在读取包列表...已完成 构建依赖关系树
正在读取状态信息...已完成 libzip4:i386 已经是最新版本 (1.0.1-0ubuntu1)。0 已升级,0 已新安装,0 已删除,20 未升级。

系统:

Lenovo G500s 运行 Ubuntu Xenial 16.04 桌面普通安装 php/apache2 标准构建(库存 Ubuntu LAMP 堆栈)php 版本:7.0.15-0ubuntu0.16.04.4

任何帮助非常感谢!

编辑:我也尝试使用 PECL 安装(我相信这是同一个插件) …

php package-management apt dependencies php7

3
推荐指数
1
解决办法
3万
查看次数

尝试删除 libnvidia-ifr1-390 时未满足的依赖关系

zags@zags:~$ sudo apt-get remove libnvidia-ifr1-390
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 libnvidia-ifr1-390:i386 : Depends: libnvidia-gl-390:i386 but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
zags@zags:~$
Run Code Online (Sandbox Code Playgroud)

输出sudo apt-get install -f

libnvidia-gl-390:amd64 package pre-installation script subprocess returned error exit status 2
Errors were encountered while …
Run Code Online (Sandbox Code Playgroud)

package-management nvidia dependencies

3
推荐指数
1
解决办法
4232
查看次数

尝试在 Bionic Beaver 18.04.1 上安装 NordVPN 时出现 GNUPG2 依赖项错误

Ubuntu/Linux 新手,遇到问题。我正在尝试在 18.04.1 Bionic Beaver 上设置 NordVPN,并尝试使用此处网站上的 4 个安装步骤:

https://nordvpn.com/download/linux/

...当我运行第一个命令时,出现此错误:

sudo apt-get install /home/ubuntu/Downloads/nordvpn-release_1.0.0_all.deb
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'nordvpn-release' instead of '/home/ubuntu/Downloads/nordvpn-release_1.0.0_all.deb'
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)

dependencies vpn gnupg 18.04

3
推荐指数
1
解决办法
2万
查看次数

apt --修复损坏的安装

我是新来的。刚刚收到下面这条消息,我不知道如何解决它

Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 libasound2 : Depends: libasound2-data (>= 1.1.8-1) but 1.1.3-5 is to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
Run Code Online (Sandbox Code Playgroud)

多谢

dependencies tree

3
推荐指数
1
解决办法
2万
查看次数

我删除了 /usr/include/boost,安装 libboost-all-dev 不会恢复标头

我在 boost::thread 库标头(我没有碰过)中遇到了疯狂的编译错误,所以我删除了/usr/include/boost.

我清除了libboost-all-dev然后做了sudo apt-get install libboost-all-dev,但是标题不会回来。

我应该怎么办?

apt dependencies compiling libraries

3
推荐指数
1
解决办法
2591
查看次数

从18.04升级到ubuntu 20.04后无法安装php

我已经从 ubuntu 18.04 到 20.04 进行了版本升级。删除了之前安装的 PHP。然后我跑

sudo apt install php-cli

但我遇到以下错误:

The following packages have unmet dependencies:
 php7.4-cli : Depends: php7.4-common (= 7.4.3-4ubuntu2.4) but 7.4.8-1+ubuntu18.04.1+deb.sury.org+3 is to be installed
              Depends: php7.4-json but it is not going to be installed
              Depends: php7.4-opcache but it is not going to be installed
              Depends: php7.4-readline but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Run Code Online (Sandbox Code Playgroud)

所以我怀疑7.4.8-1+ubuntu18.04.1+deb.sury.org+3包裹仍然有效?我已经检查了/etc/apt/sources.list目录/etc/apt/sources.list.d/,但没有找到任何与该包匹配的源。

我还应该看哪里?

编辑

apt …

php package-management apt dependencies

3
推荐指数
1
解决办法
9240
查看次数

尝试从 16.04LTS 更新到 18.04LTS,但更新包时未满足 Perl 依赖关系或冲突

我已经完成了:sudo apt update 但是当我这样做时sudo apt upgrade,我得到:

The following packages have unmet dependencies:
 perl-modules-5.22 : Conflicts: perl-modules
                     Conflicts: perl-modules:i386
Run Code Online (Sandbox Code Playgroud)

我试过了:

sudo dpkg --configure -a

sudo apt-get -f install

sudo apt-get  install --reinstall perl-modules-5.22

sudo apt-get clean
Run Code Online (Sandbox Code Playgroud)

不能,sudo do-release-upgrade直到我解决这个问题。

如何解决 Perl 冲突?

谢谢!

upgrade dependencies perl

3
推荐指数
1
解决办法
3687
查看次数

为什么“apt-cache search”和“find / -name”显示与我已清除的包关联的文件?

我专门在我的系统上安装了 libreoffice-writer,然后用sudo apt-get purge '*libreoffice-writer*' --autoremove. 之后,我一个接一个地运行这些终端命令,以确定我是否真的删除了与 libreoffice 或 libreoffice-writer 关联的所有文件 -

apt-cache search libreoffice-writer

sudo find / -name libreoffice 
Run Code Online (Sandbox Code Playgroud)

命令输出图像

然后我运行apt-cache search libreoffice,它显示了数十个名为“libreoffice”的文件 输出图像

正如您在终端图像中看到的,为什么仍然留下这么多关联文件?我如何删除所有这些文件,以便下次我从 libreoffice 安装任何内容时,它应该像第一次在我的系统上安装一样自行安装?

package-management dependencies libreoffice apt-cache purge

3
推荐指数
1
解决办法
1437
查看次数

libpulse-dev安装问题

Ubuntu 21.10 中似乎存在问题libpulse-dev,因为如果我想在完全最新的系统上安装 libsdl2-dev,我会得到:

以下软件包具有未满足的依赖关系:

libpulse-dev :依赖:libpulse0 (= 1:15.0+dfsg1-1ubuntu2) 但要安装 1:15.0+dfsg1-1ubuntu2.1

# dpkg --get-selections | grep hold
root@gamer2:/# apt update
Hit:1 https://repo.steampowered.com/steam stable InRelease
Hit:2 http://ca.archive.ubuntu.com/ubuntu impish InRelease                             
Hit:3 http://ca.archive.ubuntu.com/ubuntu impish-updates InRelease                     
Hit:4 http://security.ubuntu.com/ubuntu impish-security InRelease
Hit:5 http://ca.archive.ubuntu.com/ubuntu impish-backports InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
root@gamer2:/# apt dist-upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
0 upgraded, …
Run Code Online (Sandbox Code Playgroud)

dependencies development pulseaudio software-installation

3
推荐指数
1
解决办法
1944
查看次数

2
推荐指数
1
解决办法
328
查看次数