udev, libpam-systemd, systemd-sysv 및 systemd 종속성 오류로 인해 쉽게 사용할 수 없게 됩니다.

udev, libpam-systemd, systemd-sysv 및 systemd 종속성 오류로 인해 쉽게 사용할 수 없게 됩니다.

실수로 pop-desktop을 다시 다운로드한 후 udev 및 systemd에서 종속성 오류가 발생하여 apt를 사용할 수 없게 되었습니다. sudo apt update를 실행하면 다음 오류가 발생합니다.

user@computer:~$ sudo apt upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 libpam-systemd : Depends: systemd (= 249.11-0ubuntu3.1)
 systemd-sysv : Depends: systemd (= 249.11-0ubuntu3.1)
 udev : Breaks: systemd (< 249.11-0ubuntu3.1)
        Breaks: systemd:i386 (< 249.11-0ubuntu3.1)
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

sudo apt --fix-broken install을 시도하면 다음과 같습니다.

user@computer:~$ sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
  libpam-systemd libudev1 libudev1:i386 systemd-sysv udev
The following packages will be DOWNGRADED:
  libpam-systemd libudev1 libudev1:i386 systemd-sysv udev
0 upgraded, 0 newly installed, 5 downgraded, 0 to remove and 63 not upgraded.
3 not fully installed or removed.
Need to get 0 B/2,708 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
dpkg: dependency problems prevent configuration of systemd:
 udev (249.11-0ubuntu3.1) breaks systemd (<< 249.11-0ubuntu3.1) and is installed.
  Version of systemd to be configured is 249.11-0ubuntu3pop0~1650312774~22.04~cecf6af.

dpkg: error processing package systemd (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a 
previous failure.
                 Errors were encountered while processing:
 systemd
E: Sub-process /usr/bin/dpkg returned an error code (1)

명령을 실행한 후 여러 소스를 방문했지만 내 상황에 대한 해결책을 찾을 수 없었습니다.

sudo dpkg --configure -a를 시도했는데 다음이 반환되었습니다.

 user@computer:~$ sudo dpkg --configure -a
dpkg: dependency problems prevent configuration of systemd:
 udev (249.11-0ubuntu3.1) breaks systemd (<< 249.11-0ubuntu3.1) and is installed.
  Version of systemd to be configured is 249.11-0ubuntu3pop0~1650312774~22.04~cecf6af.

dpkg: error processing package systemd (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of systemd-timesyncd:
 systemd-timesyncd depends on systemd (= 249.11-0ubuntu3pop0~1650312774~22.04~cecf6af); however:
  Package systemd is not configured yet.

dpkg: error processing package systemd-timesyncd (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libnss-systemd:amd64:
 libnss-systemd:amd64 depends on systemd (= 249.11-0ubuntu3pop0~1650312774~22.04~cecf6af); however:
  Package systemd is not configured yet.

dpkg: error processing package libnss-systemd:amd64 (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 systemd
 systemd-timesyncd
 libnss-systemd:amd64

sudo apt -f install 및 sudo apt --fix-broken install을 시도했습니다.

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
  libpam-systemd libudev1 libudev1:i386 systemd-sysv udev
The following packages will be DOWNGRADED:
  libpam-systemd libudev1 libudev1:i386 systemd-sysv udev
0 upgraded, 0 newly installed, 5 downgraded, 0 to remove and 63 not upgraded.
3 not fully installed or removed.
Need to get 0 B/2,708 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
dpkg: dependency problems prevent configuration of systemd:
 udev (249.11-0ubuntu3.1) breaks systemd (<< 249.11-0ubuntu3.1) and is installed.
  Version of systemd to be configured is 249.11-0ubuntu3pop0~1650312774~22.04~cecf6af.

dpkg: error processing package systemd (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a 
previous failure.
                 Errors were encountered while processing:
 systemd
E: Sub-process /usr/bin/dpkg returned an error code (1)

나는 또한 시냅틱을 시도했습니다.

                         Errors were encountered while processing:
 systemd
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:
dpkg: dependency problems prevent configuration of systemd:
 udev (249.11-0ubuntu3.1) breaks systemd (<< 249.11-0ubuntu3.1) and is installed.
  Version of systemd to be configured is 249.11-0ubuntu3pop0~1650312774~22.04~cecf6af.

dpkg: error processing package systemd (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of systemd-timesyncd:
 systemd-timesyncd depends on systemd (= 249.11-0ubuntu3pop0~1650312774~22.04~cecf6af); however:
  Package systemd is not configured yet.

dpkg: error processing package systemd-timesyncd (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libnss-systemd:amd64:
 libnss-systemd:amd64 depends on systemd (= 249.11-0ubuntu3pop0~1650312774~22.04~cecf6af); however:
  Package systemd is not configured yet.

dpkg: error processing package libnss-systemd:amd64 (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 systemd
 systemd-timesyncd
 libnss-systemd:amd64

이 udev 및 시스템 문제를 해결할 방법이 있나요? 이 문제가 해결되었다면 해결된 문제에 대한 링크를 보내주실 수 있나요? 참고로 저는 Pop!_OS 22.04 LTS를 사용하고 있습니다.

답변1

Pop_Os에서도 같은 문제가 발생했습니다! 22.04 LTS 및 여기에 대한 답변https://askubuntu.com/questions/146150/unable-to-fix-broken-packages-with-sudo-apt-get-install-f

나를 위해이 문제를 해결했습니다. 파일에서 udev 항목을 제거하고 apt 업그레이드를 실행하여 성공적으로 완료했습니다.

그런 다음 udev가 파일로 돌아왔고 지금까지 모든 것이 잘 작동하는 것으로 보이며 터미널이나 인기 상점을 통한 업데이트가 이제 작동하지만 이로 인해 부정적인 후속 문제가 발생할지 100% 확신할 수는 없습니다.

만일의 경우를 대비해 어떤 작업을 하기 전에 반드시 파일을 백업해 두세요!

관련 정보