我想libc6-dev-amd64
在 Ubuntu 18.04 上安装该包但是apt
说没有这样的包:
sudo apt install libc6-dev-amd64
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libc6-dev-amd64
尝试架构也失败了(这不是必需的):
sudo apt install libc6-dev-amd64:i386
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libc6-dev-amd64:i386
libc6-dev-amd64
当我搜索https://packages.ubuntu.com/它清楚地表明这个包是可用的:https://packages.ubuntu.com/search?keywords=libc6-dev-amd64&searchon=names&suite=bionic§ion=all。
为啥不apt
知道呢?
答案1
您需要启用外部 arch-i386:
$ sudo dpkg --add-architecture i386
$ sudo apt update
然后您可以通过以下方式开始安装:
$ sudo apt install libc6-dev-amd64:i386
要不就
$ sudo apt install libc6-dev-amd64
因为只有一个包“libc6-dev-amd64:i386”。