Ubuntu

無法在 Ubuntu 20.04 中找到軟體包 packagekit-gtk3-module:i386

  • January 14, 2021

我正在嘗試安裝需要此軟體包的應用程序,當我嘗試安裝此軟體包時,出現上述錯誤。

我已經使用 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

您的 中應該有以下幾行/etc/apt/sources.list

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

由於包屬於universe儲存庫,包更新通過安全更新和應用bionic-updatepackagekit-gtk3-module

範例 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

引用自:https://unix.stackexchange.com/questions/628703