我想安装 Microsoft Office 2010,因为我急需 excel2010。我安装了 PlayonLinux,但收到错误。然后我尝试安装 wine,但也有一些奇怪的错误输出。这是输出,我已经尝试了命令 apt --fix-broken install:
sudo apt-get install wine
Reading package lists... Done
Building dependency tree
Reading state information... Done
wine is already the newest version (1.4-0ubuntu4).
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
wine1.4 : Depends: wine1.4-amd64 (= 1.4-0ubuntu4)
Recommends: ttf-droid
Recommends: ttf-liberation
Recommends: ttf-umefont but it is not going to be installed
Recommends: ttf-unfonts-core but it is not going to be installed
Recommends: ttf-wqy-microhei
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
不幸的是,它不起作用:
sudo apt --fix-broken install
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:
corsix-th-data game-data-packager game-data-packager-runtime libdrm-common
liblua5.2-0 libsdl2-mixer-2.0-0 libwine lua-filesystem lua-lpeg
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
wine1.4-amd64
Recommended packages:
wine-gecko1.4
The following NEW packages will be installed:
wine1.4-amd64
0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded.
4 not fully installed or removed.
Need to get 0 B/21,4 MB of archives.
After this operation, 111 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
WARNING: The following packages cannot be authenticated!
wine1.4-amd64
Install these packages without verification? [y/N] y
(Reading database ... 258289 files and directories currently installed.)
Preparing to unpack .../wine1.4-amd64_1.4-0ubuntu4_amd64.deb ...
Unpacking wine1.4-amd64 (1.4-0ubuntu4) ...
dpkg: error processing archive /var/cache/apt/archives/wine1.4-amd64_1.4-0ubuntu4_amd64.deb (--unpack):
trying to overwrite '/usr/lib/x86_64-linux-gnu/wine/propsys.dll.so', which is also in package libwine:amd64 1.8.7-1ubuntu1
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/wine1.4-amd64_1.4-0ubuntu4_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
我发现了错误,我将镜像服务器设置为其他服务器,而不是主服务器。我所做的是通过以下命令从 /etc/apt/sources.list 中删除此类源sudo gedit /etc/apt/sources.list
。我运行了常用命令,例如,sudo apt --fix-broken install
并sudo apt-get update && sudo apt-get dist-upgrade
重新安装了 Wine 和 Playonlinux,一切正常!!谢谢!
答案1
执行以下命令
sudo apt --fix-broken install sudo apt-get update sudo apt-get upgrade sudo apt-get install wine
我认为这将正确安装 wine!