kali linux 中 Atom 安装依赖错误

kali linux 中 Atom 安装依赖错误

我尝试在 kali linux 上安装 atom,但出现依赖性错误

sudo dpkg -i '/root/Downloads/atom-amd64(2).deb'

错误:

Selecting previously unselected package atom.
(Reading database ... 407923 files and directories currently installed.)
Preparing to unpack .../Downloads/atom-amd64(2).deb ...
Unpacking atom (1.45.0) ...
dpkg: dependency problems prevent configuration of atom:
 atom depends on libgconf-2-4 (>= 3.2.5) | libgconf2-4; however:
  Package libgconf-2-4 is not installed.
  Package libgconf2-4 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 kali-menu (2020.2.2) ...
Processing triggers for gnome-menus (3.36.0-1) ...
Processing triggers for mime-support (3.64) ...
Processing triggers for desktop-file-utils (0.24-1) ...
Errors were encountered while processing:
 atom

首先我用 删除了损坏的包sudo apt-get -f install。然后尝试安装 libgconf-2-4sudo apt-get install libgconf-2-4sudo apt-get install -y gvfs-bin。但都出现了错误。

如何解决?

答案1

检查/etc/apt/sources.list以确保它具有默认存储库。文件中/etc/apt/sources.listKali Linux 滚动发布的默认存储库是:

deb https://http.kali.org/kali kali-rolling main non-free contrib

您可以/etc/apt/sources.list手动编辑该文件。

sudo nano /etc/apt/sources.list

如果您不使用非官方存储库填充系统的 sources.list 文件,Kali 可以避免很多问题。由于 Atom 文本编辑器是一个 snap 包,因此它被打包为一个独立应用程序,可以使用以下命令进行安装而不会破坏任何其他内容:

sudo apt update   
sudo apt install snapd   
sudo systemctl enable --now snapd apparmor  
sudo reboot  
sudo snap install atom --classic    

当有更新可用时,Snap 包会在后台自动更新。

相关内容