我正在尝试安装 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 安装(我相信这是同一个插件) …
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) 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) 我是新来的。刚刚收到下面这条消息,我不知道如何解决它
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)
多谢
我在 boost::thread 库标头(我没有碰过)中遇到了疯狂的编译错误,所以我删除了/usr/include/boost
.
我清除了libboost-all-dev
然后做了sudo apt-get install libboost-all-dev
,但是标题不会回来。
我应该怎么办?
我已经从 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 …
我已经完成了: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 冲突?
谢谢!
我专门在我的系统上安装了 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 安装任何内容时,它应该像第一次在我的系统上安装一样自行安装?
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) 有人能告诉我为什么 Flash Player 需要ttf-mscorefonts
工作吗?
dependencies ×10
apt ×3
php ×2
18.04 ×1
apt-cache ×1
compiling ×1
development ×1
flash ×1
gnupg ×1
libraries ×1
libreoffice ×1
nvidia ×1
perl ×1
php7 ×1
pulseaudio ×1
purge ×1
tree ×1
upgrade ×1
vpn ×1