我正在尝试在Kubuntu编辑器17.04上安装atom编辑器。 下面是命令执行和结果。
$ sudo dpkg -i Downloads/atom-amd64.deb
Selecting previously unselected package atom.
(Reading database ... 172158 files and directories currently installed.)
Preparing to unpack Downloads/atom-amd64.deb ...
Unpacking atom (1.21.0) ...
dpkg: dependency problems prevent configuration of atom:
atom depends on gconf2; however:
Package gconf2 is not installed.
atom depends on gvfs-bin; however:
Package gvfs-bin is not installed.
dpkg: error processing package atom (--install):
dependency problems - leaving unconfigured
Processing triggers for mime-support (3.60ubuntu1) ...
Errors were encountered while processing:
atom
尽管命令执行失败,仍然可以打开原子编辑器并能够编辑文件。
以下是我机器中安装的原子细节。
$ atom --version
Atom : 1.21.0
Electron: 1.6.9
Chrome : 56.0.2924.87
Node : 7.4.0
但我该如何解决这个问题?
答案 0 :(得分:4)
运行命令sudo apt --fix-broken install
解决了这个问题。
答案 1 :(得分:0)
在18.04上安装时,我遇到了同样的问题。
建议先运行sudo apt-get update
,然后再运行sudo apt-get autoremove
,以执行以下操作:
sudo apt --fix-broken install
之后我跑了sudo apt-get install -f
最后sudo dpkg -i atom-amd64.deb
。
这为我解决了这个问题!