Ubuntu 21.04와 함께 새로운 LXC CT를 출시하면 software-properties-common
.apt-add-repository
새로운 인스턴스에서 루트로 로그인하고 apt update
and 를 실행하면 apt upgrade
다음 apt install software-properties-common
과 같은 출력이 표시됩니다.
root@kubernetes:~# apt install software-properties-common
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
software-properties-common : Depends: packagekit but it is not installable
E: Unable to correct problems, you have held broken packages.
root@kubernetes:~# apt install packagekit
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libglib2.0-bin : Depends: libglib2.0-0 (= 2.68.1-1~ubuntu21.04.1) but 2.68.0-1 is to be installed
E: Unable to correct problems, you have held broken packages.
새로운 인스턴스에 왜 이것을 설치할 수 없는지 아시나요? 좀 엉망인 것 같습니다.
답변1
이 문제가 있는 다른 사람을 위해 해결책은 편집 /etc/apt/sources.list
하고 다음과 같이 하는 것이었습니다.오직항목(다른 모든 항목은 주석 처리):
deb http://archive.ubuntu.com/ubuntu/ hirsute-proposed main
그런 다음 다시 실행하여 apt update
libglib2.0-0 apt upgrade
패키지를 수정한 다음 sources.list
이전으로 복원하고(제안된 줄은 그대로 유지) 다시 설치하려고 할 때 작동합니다 software-properties-common
.
기본 설치를 위해 이 작업을 수행해야 하는 이유는 정말 혼란스럽고 끔찍한 사용자 경험입니다.