편집 1

편집 1

이 패키지가 필요한 응용 프로그램을 설치하려고 하는데 이 패키지를 설치하려고 하면 위의 오류가 발생합니다.

apt update를 사용하여 적절한 패키지 목록을 업데이트했습니다. 어떡해?

64비트 우분투에 설치해야 하는데 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-update.packagekit-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

관련 정보