我正在尝试安装一个需要这个软件包的应用程序,当我试图安装这个软件包时,我会得到上面提到的错误。
我已经使用apt更新更新了apt包列表。我能做什么?
我需要安装它,这是一个32位的软件包,在64位的ubuntu。
添加架构并不能解决这个问题:
sudo dpkg --add-architecture i386
sudo apt update
Get:1 http://security.ubuntu.com/ubuntu focal-security InRelease [109 kB]
Hit:2 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:3 http://gb.archive.ubuntu.com/ubuntu focal InRelease
Get:4 http://gb.archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Hit:5 http://packages.microsoft.com/repos/vscode stable InRelease
Get:6 http://gb.archive.ubuntu.com/ubuntu focal-backports InRelease [101 kB]
Get:7 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [438 kB]
Get:8 http://security.ubuntu.com/ubuntu focal-security/main i386 Packages [175 kB]
Get:9 http://security.ubuntu.com/ubuntu focal-security/main Translation-en [97.2 kB]
Fetched 1,034 kB in 1s (1,415 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up-to-date.
N: Skipping acquisition of configured file 'main/binary-armhf/Packages', as repository 'http://packages.microsoft.com/repos/vscode stable InRelease' doesn't support architecture 'armhf'
N: Skipping acquisition of configured file 'main/binary-arm64/Packages', as repository 'http://packages.microsoft.com/repos/vscode stable InRelease' doesn't support architecture 'arm64'
sudo apt install packagekit-gtk3-module:i386
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package packagekit-gtk3-module:i386发布于 2021-01-13 08:20:52
您的/etc/apt/sources.list中应该有以下几行:
deb http://security.ubuntu.com/ubuntu bionic-security main universe由于包属于universe存储库,所以包更新通过安全更新和bionic-update:包装盒-gtk3 3- 3-模块应用。
一个示例source.list (更完整):
deb http://us.archive.ubuntu.com/ubuntu/ bionic main restricted universe multiverse
deb http://us.archive.ubuntu.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://us.archive.ubuntu.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://us.archive.ubuntu.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb http://us.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
deb http://archive.canonical.com/ubuntu/ bionic partner然后跑:
sudo apt update
sudo apt install packagekit-gtk3-module:i386https://unix.stackexchange.com/questions/628703
复制相似问题