我将 Ubuntu 从 14.04 升级到了 16.04
每当我尝试执行任何与 apt-get 相关的操作时,我都会收到此错误open-vm-tools
,例如:
#sudo dpkg --configure -a
dpkg: dependency problems prevent configuration of ubuntu-server:
ubuntu-server depends on open-vm-tools; however:
Package open-vm-tools is not configured yet.
dpkg: error processing package ubuntu-server (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
ubuntu-server
到目前为止我已经尝试过:
sudo apt-get update
sudo apt-get clean
sudo apt-get install -fy
sudo dpkg -i /var/cache/apt/archives/*.deb
sudo dpkg --configure -a
但错误仍然存在,有什么想法吗?
我试图删除该软件包,但是 ubuntu-server 依赖于它,我不确定删除 ubuntu-server 是否会破坏我的系统。
编辑:
跑步:sudo dpkg --configure open-vm-tools
设置 open-vm-tools (2:10.2.0-3~ubuntu0.16.04.1) ... 当 udev 未配置时,不允许触发 udevadm。 dpkg: 处理软件包 open-vm-tools (--configure) 时出错: 子进程安装后安装脚本返回错误退出状态 1 处理 libc-bin (2.23-0ubuntu11) 的触发器... 处理时遇到错误: 打开虚拟机工具
跑步:apt-cache policy open-vm-tools
open-vm-tools:
Installed: 2:10.2.0-3~ubuntu0.16.04.1
Candidate: 2:10.2.0-3~ubuntu0.16.04.1
Version table:
*** 2:10.2.0-3~ubuntu0.16.04.1 500
500 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
100 /var/lib/dpkg/status
2:10.0.7-3227872-2ubuntu1 500
500 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages
跑步:sudo dpkg --configure udev
sudo dpkg --configure udev
dpkg: error processing package udev (--configure):
package udev is already installed and configured
Errors were encountered while processing:
udev
跑步:sudo apt-cache policy udev
sudo apt-cache policy udev
udev:
Installed: 229-4ubuntu21.28
Candidate: 229-4ubuntu21.28
Version table:
*** 229-4ubuntu21.28 500
500 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
100 /var/lib/dpkg/status
229-4ubuntu21.27 500
500 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages
229-4ubuntu4 500
500 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages
跑步:dpkg -l | egrep -v '^ii|rc'
dpkg -l | egrep -v '^ii|rc'
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
+++-=====================================-===============================================-============-===============================================================================
ic libapache2-mod-php5 5.5.9+dfsg-1ubuntu4.29 amd64 server-side, HTML-embedded scripting language (Apache 2 module)
ic libpcrecpp0:amd64 1:8.31-2ubuntu2.3 amd64 Perl 5 Compatible Regular Expression Library - C++ runtime files
ic mysql-server-5.5 5.5.46-0ubuntu0.14.04.2 amd64 MySQL database server binaries and system database setup
rF open-vm-tools 2:10.2.0-3~ubuntu0.16.04.1 amd64 Open VMware Tools for virtual machines hosted on VMware (CLI)
ic perl-modules 5.18.2-2ubuntu1.7 all Core Perl modules
ic php5-fpm 5.5.9+dfsg-1ubuntu4.29 amd64 server-side, HTML-embedded scripting language (FPM-CGI binary)
ic systemd-services 204-5ubuntu20.31 amd64 systemd runtime services
iU ubuntu-server 1.361.4 amd64 The Ubuntu Server system
跑步:sudo dpkg -P systemd-services
(Reading database ... 118245 files and directories currently installed.)
Removing systemd-services (204-5ubuntu20.31) ...
Purging configuration files for systemd-services (204-5ubuntu20.31) ...
跑步:sudo dpkg --configure -a
dpkg: dependency problems prevent configuration of ubuntu-server:
ubuntu-server depends on open-vm-tools; however:
Package open-vm-tools is not configured yet.
dpkg: error processing package ubuntu-server (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
ubuntu-server
答案1
首先,备份一下。让我们试着修复这个问题。状态为
ic
似乎是来自 trusty 的包裹。状态很奇怪。
sudo dpkg -P libapache2-mod-php5 libpcrecpp0:amd64 mysql-server-5.5 php5-fpm
然后尝试安装 perl-modules
wget -c http://mirrors.kernel.org/ubuntu/pool/main/p/perl/perl-modules-5.22_5.22.1-9ubuntu0.6_all.deb
我希望至少 wget 可以正常工作。
sudo dpkg -i perl-modules-5.22_5.22.1-9ubuntu0.6_all.deb
open-vm-tools 也一样
wget -c http://mirrors.kernel.org/ubuntu/pool/main/o/open-vm-tools/open-vm-tools_10.2.0-3~ubuntu0.16.04.1_amd64.deb
这是 64 位的。
对于 32 位
wget -c http://mirrors.kernel.org/ubuntu/pool/main/o/open-vm-tools/open-vm-tools_10.2.0-3~ubuntu0.16.04.1_i386.deb
使用 dpkg 安装。没有错误吗?
sudo apt-get -f install && sudo apt-get update
然后使用
sudo apt-get dist-upgrade