尝试安装 .deb,但现在无法更新或安装任何东西

尝试安装 .deb,但现在无法更新或安装任何东西

我想在我的 Ubuntu 15.04 上尝试一下 weechat,所以我从这里下载了一个稳定的 .deb(https://weechat.org/download/debian/),但我认为我错过了一些说明,因为现在一切都搞砸了。软件中心一直告诉我“无法安装新软件,因为当前安装的软件有问题。您想立即修复此问题吗?”

我试过sudo apt 删除清除weechat 但是我不断收到以下各种错误消息:

Reading package lists... Done Building dependency tree
Reading state information... Done Package 'weechat' is not installed, 
so not removed You might want to run 'apt-get -f install' to correct 
these: The following packages have unmet dependencies: weechat-curses 
: Depends: weechat-core (= 1.1.1-1) but it is not going to be 
installed E: Unmet dependencies. Try 'apt-get -f install' with no 
packages (or specify a solution).

sudo apt-get -f 安装产生这个错误:

Unpacking weechat-core (1.1.1-1) ... dpkg: error processing archive 
/var/cache/apt/archives/weechat-core_1.1.1-1_amd64.deb (--unpack): 
trying to overwrite '/usr/share/locale/fr/LC_MESSAGES/weechat.mo', 
which is also in package weechat-devel-core 1.4-1~dev20150904 dpkg-
deb: error: subprocess paste was killed by signal (Broken pipe) Errors 
were encountered while processing: /var/cache/apt/archives/weechat-
core_1.1.1-1_amd64.deb E: Sub-process /usr/bin/dpkg returned an error 
code (1)

我已经束手无策了。我尝试通过 apt 安装 weechat core 以修复依赖性问题,但似乎没有任何效果。有什么想法吗?我为我的无知道歉 - 我是 Linux 和 Ubuntu 的新手,我有点担心我的整个系统已经崩溃了!

答案1

Weechat 可通过 访问apt-get。运行以下命令:

sudo apt-get purge weechat* weechat-devel-core

如果这不起作用,请运行以下命令:

sudo dpkg -P weechat-devel-core
sudo apt-get purge weechat*

然后,

sudo apt-get clean
sudo apt-get update
sudo apt-get install weechat*

将来,您可以使用 apt-get 搜索包,示例如下:

apt-cache search weechat | grep weechat

相关内容