업데이트나 일부 패키지도 업그레이드하거나 설치할 수 없습니다.

업데이트나 일부 패키지도 업그레이드하거나 설치할 수 없습니다.

안녕하세요, 업그레이드하는 동안 이 오류가 발생했습니다. 내가 어디서 망쳤는지 모르겠어요.

업그레이드나 설치, 심지어 dpkg 구성을 시도할 때마다 이 오류가 발생합니다.

나는 이 문제에 직면해 있다2주 이후StackExchange와 UbuntuForum에서 많은 검색을 한 후 여기에 이 ​​질문을 게시하고 있습니다.

도와주세요

나는 현재우분투 18.04.03 LTS

divyang@divyang:~$ sudo apt-get upgrade 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  linux-headers-4.15.0-55 linux-headers-4.15.0-55-generic
  linux-headers-4.18.0-15 linux-headers-4.18.0-15-generic
  linux-image-4.15.0-55-generic linux-image-4.18.0-15-generic
  linux-modules-4.15.0-55-generic linux-modules-4.18.0-15-generic
  linux-modules-extra-4.15.0-55-generic linux-modules-extra-4.18.0-15-generic
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0 B/321 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
dpkg: error processing package gvfs-backends (--configure):
 package is in a very bad inconsistent state; you should
 reinstall it before attempting configuration
Errors were encountered while processing:
 gvfs-backends
E: Sub-process /usr/bin/dpkg returned an error code (1)
divyang@divyang:~$ sudo dpkg --configure -a
dpkg: error processing package gvfs-backends (--configure):
 package is in a very bad inconsistent state; you should
 reinstall it before attempting configuration
Errors were encountered while processing:
 gvfs-backends

미리 감사드립니다 :)

답변1

먼저 패키지를 제거한 후 다시 설치해 보세요.

sudo apt remove --purge gvfs-backends; sudo apt install gvfs-backends

그런 다음 업그레이드를 수행하십시오.

sudo apt upgrade

관련 정보