在尝试运行安装Slack所需的sudo apt install debsig-verify时,我收到了以下错误消息:
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
libreadline-dev:i386 :
Depends: libreadline7:i386 (= 7.0-3) but 7.0-0ubuntu2 is to be
installed
Depends: libtinfo-dev:i386 but it is not going to be installed libreadline7 :
Breaks: libreadline7:i386 (!= 7.0-3) but 7.0-0ubuntu2 is to be installed \
libreadline7:i386 :
Breaks: libreadline7 (!= 7.0-0ubuntu2) but 7.0-3 is to be installed`当我尝试sudo apt --fix-broken install时,我得到了以下结果:
The following additional packages will be installed:
libreadline7:i386
The following packages will be upgraded:
libreadline7:i386
1 upgraded, 0 newly installed, 0 to remove and 25 not upgraded.
4 not fully installed or removed.
Need to get 0 B/128 kB of archives.
After this operation, 8 192 B of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 271028 files and directories currently installed.)
Preparing to unpack .../libreadline7_7.0-3_i386.deb ...
Unpacking libreadline7:i386 (7.0-3) over (7.0-0ubuntu2) ...
dpkg: error processing archive /var/cache/apt/archives>/libreadline7_7.0-3_i386.deb (--unpack):
trying to overwrite shared '/usr/share/doc/libreadline7/changelog.Debian.gz', which is different from other instances of package libreadline7:i386
Errors were encountered while processing:
/var/cache/apt/archives/libreadline7_7.0-3_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)`dpkg -S readline.h的结果:
octave-doc: /usr/share/doc/octave/octave.html/Customizing-readline.html
nodejs: /usr/share/doc/nodejs/api/readline.html
libreadline-dev:amd64, libreadline-dev:i386: /usr/include/readline/readline.hdpkg -l | grep readline的结果:
ii libreadline-dev:amd64 7.0-3 amd64 GNU readline and history libraries, development files
iU libreadline-dev:i386 7.0-3 i386 GNU readline and history libraries, development files
iF libreadline7:amd64 7.0-3 amd64 GNU readline and history libraries, run-time libraries
iU libreadline7:i386 7.0-0ubuntu2 i386 GNU readline and history libraries, run-time libraries
ii readline-common 7.0-3 all GNU readline and history libraries, common filesapt-cache policy libreadline7:i386的结果:
libreadline7:i386:
Installed: 7.0-0ubuntu2
Candidate: 7.0-3
Version table:
7.0-3 500
500 http://ua.archive.ubuntu.com/ubuntu bionic/main i386 Packages
*** 7.0-0ubuntu2 100
100 /var/lib/dpkg/status自从我从上一个版本更新以来,我已经使用了18.04。也许这就是为什么添加了与18.04不兼容的东西。
sudo apt-get remove libreadline7 -a=i386的结果:
E: Command line option 'a' [from -a=:i386] is not understood in combination with the other options`sudo apt-get remove libreadline7:https://pastebin.com/AUmqPyT2结果
sudo apt-get remove readline7:i386的结果:
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
libreadline-dev:i386 :
Depends: libreadline7:i386 (= 7.0-3) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution)我还得到了另一个关于读行依赖的错误。我应该把它贴在这里吗?
发布于 2018-10-26 11:56:36
移除导致未满足的依赖项错误的libreadline7 7:i 386。卸载libreadline7 7:i 386也将解决trying to overwrite错误。然后安装snap包,它作为一个独立的包不会造成任何额外的包管理问题,或者需要任何附加的依赖包。
sudo apt --fix-broken install
sudo apt remove libreadline-dev:i386 libreadline7:i386 Slack是Ubuntu18.10中的本机snap包。要在所有当前支持的Ubuntu版本中安装Slack,请打开终端并键入:
sudo snap install slack --classic 此命令将安装最新的稳定版本的Slack,如果有更新,它也将自动更新。
要启动Slack,请单击Dash中的图标或从终端运行以下命令:
snap run slack Slack有一个免费的版本,供小团队或任何想要在无限制的时间内尝试Slack的人使用。
https://askubuntu.com/questions/1087378
复制相似问题