这可能标记不正确,但我相信我的问题是 kali 特有的。
当我尝试安装多架构支持时,出现错误,表示没有安装候选项。
我尝试寻找解决方案但我发现 ubuntu 系统的手动下载对我来说不起作用。
以下报告可能有助于发现问题。任何帮助都将不胜感激,谢谢。
$ sudo apt-get install multiarch-support
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package multiarch-support is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'multiarch-support' has no installation candidate
/
# curl https://packages.microsoft.com/config/debian/10/prod.list > /etc/apt/sources.list.d/mssql-release.list
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 74 100 74 0 0 506 0 --:--:-- --:--:-- --:--:-- 506
/
$ cat /etc/apt/sources.list
# deb cdrom:[Kali GNU/Linux 2021.2rc3 _Kali-last-snapshot_ - Official amd64 DVD Binary-1 with firmware 20210528-08:52]/ kali-rolling contrib main non-free
deb https://http.kali.org/kali kali-rolling main non-free contrib
deb-src https://http.kali.org/kali kali-rolling main non-free contrib
#deb cdrom:[Kali GNU/Linux 2021.2rc3 _Kali-last-snapshot_ - Official amd64 DVD Binary-1 with firmware 20210528-08:52]/ kali-rolling contrib main non-free
# This system was installed using small removable media
# (e.g. netinst, live or single CD). The matching "deb cdrom"
# entries were disabled at the end of the installation process.
# For information about how to configure apt package sources,
# see the sources.list(5) manual.
/
$ lsb_release -a
No LSB modules are available.
Distributor ID: Kali
Description: Kali GNU/Linux Rolling
Release: 2021.2
Codename: kali-rolling
答案1
为什么你要安装 Kali Linux,但要从 Kali 存储库切换到 Ubuntu?这两个版本可能不完全兼容。我希望你还没有更新某些软件包并安装了错误的软件包。
查看文章
修复 Kali Linux sources.list 存储库. 唯一需要的存储库sources.list
是:
deb http://http.kali.org/kali kali main non-free contrib
deb http://security.kali.org/kali-security kali/updates main contrib non-free
别忘了跑步sudo apt-get update
。
我不知道您为什么要费力安装multiarch
,但如果是为了安装另一个包,请尝试先安装该包,而无需安装multiarch
。
您还可以安装 多架构支持 手动:
cd ~/Downloads
wget http://archive.ubuntu.com/ubuntu/pool/main/g/glibc/multiarch-support_2.27-3ubuntu1.4_amd64.deb
sudo apt-get install ./multiarch-support_2.27-3ubuntu1.4_amd64.deb
答案2
cd ~/Downloads
wget http://archive.ubuntu.com/ubuntu/pool/main/g/glibc/multiarch-support_2.27-3ubuntu1_amd64.deb
sudo apt-get install ./multiarch-support_2.27-3ubuntu1_amd64.deb