编辑1

编辑1

我正在尝试安装需要此软件包的应用程序,当我尝试安装此软件包时,出现上述错误。

我已经使用 apt update 更新了 apt 软件包列表。我能做些什么?

我需要在 64 位 ubuntu 上安装它,它是一个 32 位软件包。

编辑1

添加架构并没有解决问题:

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

答案1

您的 中应该有以下几行/etc/apt/sources.list

    deb http://security.ubuntu.com/ubuntu bionic-security main universe

由于该软件包属于universe存储库,因此软件包更新是通过安全更新应用的,并且bionic-updatepackagekit-gtk3-模块

示例 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:i386

相关内容