嘿,我遇到了一个问题,我知道是什么原因造成的。但不知怎的,我可以让包管理正常工作。
> joeri@laptop-K55VD:~$ sudo apt-get remove wine
wine32-development wine-development winetricks
wine64-development wine-rt-amd64
wineasio-amd64 wine-rt-i386
joeri@laptop-K55VD:~$ sudo apt-get remove wine-rt-amd64
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:
wine-rt-i386:i386 : Depends: wine-rt:any (= 2:2.0.1-1~kxstudio1)
Recommends: libgif4:i386 but it is not installable
wineasio-amd64 : Depends: wine-rt-amd64 but it is not going to be installed or
wine-staging-amd64 but it is not installable or
wine-amd64
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
这是我试过的许多方法之一。我只是想彻底戒掉酒瘾。
apt --fix-broken install 的输出如下:
> joeri@laptop-K55VD:~$ 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:
linux-headers-4.13.0-16 linux-headers-4.13.0-16-generic
linux-image-4.13.0-16-generic linux-image-extra-4.13.0-16-generic
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
wine-rt
Suggested packages:
dosbox:any winbind
Recommended packages:
ttf-droid | fonts-droid
The following NEW packages will be installed:
wine-rt
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
3 not fully installed or removed.
Need to get 0 B/1195 kB of archives.
After this operation, 6268 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 461604 files and directories currently installed.)
Preparing to unpack .../wine-rt_2%3a2.0.1-1~kxstudio1_amd64.deb ...
Unpacking wine-rt (2:2.0.1-1~kxstudio1) ...
dpkg: error processing archive /var/cache/apt/archives/wine-rt_2%3a2.0.1-1~kxstudio1_amd64.deb (--unpack):
trying to overwrite '/usr/share/wine/fonts/ssef1256.fon', which is also in package fonts-wine 2.0.2-2ubuntu1
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/wine-rt_2%3a2.0.1-1~kxstudio1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
也没用,我很乐意再次使用我的包管理器。请帮忙。:)
答案1
我设法解决了这个问题
但我花了好几个小时(用其他方法大约花了 4 个小时)
从这里获取 synpatic:https://ubuntu.pkgs.org/17.10/ubuntu-universe-amd64/synaptic_0.84.2_amd64.deb.html
下载它及其依赖项。
cd ~/下载
sudo dpkg -i synaptic(version).deb 依赖项也是如此。
使用 synaptic 中损坏的过滤器。在我的例子中,将其全部删除。