Ubuntu 16.04 : "스냅 설정."및 dpkg가 정지됨


12

방금 정기적으로 업데이트하고있었습니다.

~$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
Setting up snapd (2.14.2~16.04) ...

나는 dpkg 프로세스를 죽여야했다. 그런 다음 apt-get update dpkg가 다음 메시지를 표시합니다.

E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem. 
gondy@***:~$ sudo dpkg --configure -a
Setting up snapd (2.14.2~16.04) ...

그리고 다시 걸려요. 어떻게해야합니까? 이 패키지가 필요합니까? 14.04 LTS Server 버전에서 업그레이드 된 Ubuntu 16.04를 실행 중입니다.


1
문제는 여전히 우분투 18.04에 있습니다.
AnthonyB

답변:


6

이것은 알려진 버그 이며 이미 제안되어 수정되었습니다. 수정 프로그램이 안정적이 될 때까지 기다리거나 테스트를 사용하거나 해결 방법을 사용할 수 있습니다 .

  1. 루트 쉘을 시작하다 sudo -i
  2. 운영 echo "bash -c 'service snapd.boot-ok start'" | at now + 4 min
  3. 실행 apt install snapd(취소 된 dpkg 프로세스에 대해 논쟁하는 경우 사용 dpkg --configure -a)
  4. 4 분 이상 기다리십시오

또는 첫 번째 콘솔을 sudo service snapd.boot-ok start본 후 다른 콘솔에서 실행 Setting up snapd...하십시오.


1
대답 해줘서 고마워요. 그러나 스냅 된 패키지를 간단히 제거하여이 문제를 해결했습니다. 필요하지 않습니다.
Gondy
당사 사이트를 사용함과 동시에 당사의 쿠키 정책개인정보 보호정책을 읽고 이해하였음을 인정하는 것으로 간주합니다.
Licensed under cc by-sa 3.0 with attribution required.