리그캣의 개발놀이터

apt-get update error : Reading package lists... DoneW: chmod 0700 of directory /var/lib/apt/lists/partial failed - 본문

인프라/인프라관리

apt-get update error : Reading package lists... DoneW: chmod 0700 of directory /var/lib/apt/lists/partial failed -

리그캣 2020. 2. 17. 16:49

apt-get update시 아래와 같은 에러가 났다 결론적으로 dns 문제이다.. reboot를 하면서 dns 설정이 자꾸 지워졌다.

Reading package lists... Done
W: chmod 0700 of directory /var/lib/apt/lists/partial failed - SetupAPTPartialDirectory (1: Operation not permitted)
E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)
E: Unable to lock directory /var/lib/apt/lists/
W: Problem unlinking the file /var/cache/apt/pkgcache.bin - RemoveCaches (13: Permission denied)
W: Problem unlinking the file /var/cache/apt/srcpkgcache.bin - RemoveCaches (13: Permission denied)
admin_gpc04@ngpc04:/var/run$
admin_gpc04@ngpc04:/var/run$
admin_gpc04@ngpc04:/var/run$ sudo apt-get update
Err:1 http://kr.archive.ubuntu.com/ubuntu xenial InRelease
  Temporary failure resolving 'kr.archive.ubuntu.com'
Err:2 http://security.ubuntu.com/ubuntu xenial-security InRelease
  Temporary failure resolving 'security.ubuntu.com'
Err:3 http://ppa.launchpad.net/webupd8team/java/ubuntu xenial InRelease
  Temporary failure resolving 'ppa.launchpad.net'
Err:4 http://repos.mesosphere.com/ubuntu xenial InRelease
  Temporary failure resolving 'repos.mesosphere.com'
Err:5 http://developer.download.nvidia.com/compute/cuda/repos//x86_64  InRelease
  Temporary failure resolving 'developer.download.nvidia.com'
Err:6 http://kr.archive.ubuntu.com/ubuntu xenial-updates InRelease
  Temporary failure resolving 'kr.archive.ubuntu.com'
Err:7 https://download.docker.com/linux/ubuntu xenial InRelease
  Could not resolve host: download.docker.com
Err:8 http://kr.archive.ubuntu.com/ubuntu xenial-backports InRelease
  Temporary failure resolving 'kr.archive.ubuntu.com'
Err:9 https://nvidia.github.io/libnvidia-container/ubuntu16.04/amd64  InRelease
  Could not resolve host: nvidia.github.io
Err:10 http://developer.download.nvidia.com/compute/machine-learning/repos//x86_64  InRelease
  Temporary failure resolving 'developer.download.nvidia.com'
Err:11 https://nvidia.github.io/nvidia-container-runtime/ubuntu16.04/amd64  InRelease
  Could not resolve host: nvidia.github.io
Err:12 https://nvidia.github.io/nvidia-docker/ubuntu16.04/amd64  InRelease
  Could not resolve host: nvidia.github.io
Reading package lists... Done
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/mesosphere.list:1 and /etc/apt/sources.list.d/mesosphere.list:2
W: Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list.d/mesosphere.list:1 and /etc/apt/sources.list.d/mesosphere.list:2
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/mesosphere.list:1 and /etc/apt/sources.list.d/mesosphere.list:2
W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list.d/mesosphere.list:1 and /etc/apt/sources.list.d/mesosphere.list:2
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/mesosphere.list:1 and /etc/apt/sources.list.d/mesosphere.list:2
W: Target DEP-11 (main/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list.d/mesosphere.list:1 and /etc/apt/sources.list.d/mesosphere.list:2
W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list.d/mesosphere.list:1 and /etc/apt/sources.list.d/mesosphere.list:2
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/mesosphere.list:1 and /etc/apt/sources.list.d/mesosphere.list:3
W: Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list.d/mesosphere.list:1 and /etc/apt/sources.list.d/mesosphere.list:3
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/mesosphere.list:1 and /etc/apt/sources.list.d/mesosphere.list:3
W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list.d/mesosphere.list:1 and /etc/apt/sources.list.d/mesosphere.list:3
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/mesosphere.list:1 and /etc/apt/sources.list.d/mesosphere.list:3
W: Target DEP-11 (main/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list.d/mesosphere.list:1 and /etc/apt/sources.list.d/mesosphere.list:3
W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list.d/mesosphere.list:1 and /etc/apt/sources.list.d/mesosphere.list:3
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/mesosphere.list:1 and /etc/apt/sources.list.d/mesosphere.list:4
W: Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list.d/mesosphere.list:1 and /etc/apt/sources.list.d/mesosphere.list:4
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/meso

다음을 참고한다
https://j4ckp4rd.tistory.com/32

Comments