컴퓨터/Linux
Ubuntu Xenial 패키지 업데이트 시 발생하는 오류 해결법
0fec
2020. 6. 24. 09:38
728x90
Ubuntu Xenial (16.04)에서 apt-get update 시 발생하는 오류 메시지 중에서 다음과 같은 것이 있다.
Error: GDBus.Error:org.freedesktop.DBus.Error.Spawn.ChildExited: Launch helper exited with unknown return code 1
AppStream cache update completed, but some metadata was ignored due to errors.
AppStream cache 해결법은 다음과 같다.
sudo apt install appstream/xenial-backports
sudo appstreamcli refresh --force
다음 에러가 발생했을 시에는 해당 xml 파일을 지우고 refresh하는 것이 좋다.
AppStream system cache was updated, but problems were found: Metadata files have errors: /var/cache/app-info/xmls/fwupd.xml
sudo rm /var/cache/app-info/xmls/fwupd.xml
sudo appstreamcli refresh --force
GDBus 에러는 다음과 같이 해결한다.
sudo rm /etc/apt/apt.conf.d/20packagekit
sudo apt-get update && sudo apt-get upgrade
출처