패키지를 설치할 수 없습니다.

패키지를 설치할 수 없습니다.

패키지를 설치하려고 할 때마다 다음 메시지가 나타납니다: (이 경우 g++-12)

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  binutils-common:i386 binutils-i686-linux-gnu:i386 lib32asan8 lib32atomic1 lib32gcc-12-dev lib32gcc-s1 lib32gomp1 lib32itm1 lib32quadmath0 lib32stdc++6 lib32ubsan1 libasan8:i386 libbinutils:i386
  libc6-dev:i386 libc6-dev-i386 libc6-dev-x32 libc6-i386 libc6-x32 libcc1-0:i386 libcom-err2:i386 libcrypt-dev:i386 libctf-nobfd0:i386 libctf0:i386 libgcc-12-dev:i386 libgmp10:i386 libgomp1:i386
  libgprofng0:i386 libgssapi-krb5-2:i386 libisl23:i386 libitm1:i386 libjansson4:i386 libk5crypto3:i386 libkeyutils1:i386 libkrb5-3:i386 libkrb5support0:i386 libmpc3:i386 libmpfr6:i386
  libnsl-dev:i386 libnsl2:i386 libqt5webkit5 libquadmath0:i386 libssl3:i386 libtirpc-dev:i386 libtirpc3:i386 libubsan1:i386 libx32asan8 libx32atomic1 libx32gcc-12-dev libx32gcc-s1 libx32gomp1
  libx32itm1 libx32quadmath0 libx32stdc++6 libx32ubsan1 linux-headers-6.1.0-11-common linux-kbuild-6.1 linux-libc-dev:i386 lshw qml-module-qtwebkit x11-apps x11-session-utils xinit
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  g++-12
Suggested packages:
  g++-12-multilib gcc-12-doc
The following packages will be REMOVED:
  teamviewer-monitoring
The following NEW packages will be installed:
  g++-12
0 upgraded, 1 newly installed, 1 to remove and 17 not upgraded.
3 not fully installed or removed.
Need to get 0 B/10.7 MB of archives.
After this operation, 32.2 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 233626 files and directories currently installed.)
Removing teamviewer-monitoring (23.6.9001) ...
rm: cannot remove '/var/opt/teamviewer-rm/*.json': No such file or directory
dpkg: error processing package teamviewer-monitoring (--remove):
 installed teamviewer-monitoring package post-removal script subprocess returned error exit status 1
dpkg: too many errors, stopping
Errors were encountered while processing:
 teamviewer-monitoring
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)

무엇을 해야할지 모르겠어요...

티아.

답변1

현재 설치된 패키지와 함께 제공되는 관리자 스크립트가 teamviewer-monitoring손상된 것 같습니다. 차단을 해제하는 가장 간단한 해결책은 패키지를 제거하는 것입니다.

sudo rm /var/lib/dpkg/info/teamviewer-monitoring.*rm

완전히 제거하고 싶다면 다음 스크립트를 수정해 보세요.

teamviewer-monitoring스크립트를 제거하거나 복구한 후에는 다른 패키지의 제거 및 설치를 완료할 수 있습니다 .

관련 정보