无法安装任何软件包

无法安装任何软件包

每当我尝试安装任何新包时,例如:

    sudo apt-get install gnome-system-monitor

我犯了同样的错误:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
gnome-system-monitor is already the newest version.
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
wvdial:i386 : Depends: libuniconf4.6:i386 but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

当我尝试时apt-get -f install

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
libuniconf4.6:i386
The following NEW packages will be installed: libuniconf4.6:i386
0 upgraded, 1 newly installed, 0 to remove and 68 not upgraded.
1 not fully installed or removed.
Need to get 0 B/133 kB of archives.
After this operation, 439 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 240834 files and directories currently installed.)
Preparing to unpack .../libuniconf4.6_4.6.1-7_i386.deb ...
Unpacking libuniconf4.6 (4.6.1-7) ...
dpkg: error processing archive /var/cache/apt/archives/libuniconf4.6_4.6.1-7_i386.deb (--unpack): trying to overwrite /etc/uniconf.conf, which is also in package libuniconf4.4 4.4.1-0.2ubuntu2
Errors were encountered while processing:
/var/cache/apt/archives/libuniconf4.6_4.6.1-7_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

还:

  • 我手动删除了 /etc/uniconf.conf 和 /var/cache/apt/archives/libuniconf4.6_4.6.1-7_i386.deb 文件

  • 我跑sudo apt-get autocleansudo apt-get clean

但问题并没有得到解决,我还能做什么?

答案1

请自行承担风险

sudo dpkg -i --force-overwrite /var/cache/apt/archives/*.deb

相关内容