관리 메뉴

AI 세상 ?

[OpenStack Liberty 구축 후] Instance에서 apt-get update 안될때 방법 본문

Cloud/Etc

[OpenStack Liberty 구축 후] Instance에서 apt-get update 안될때 방법

phpdoumi 2016. 4. 20. 11:13

instance에서 apt-get update하면 아래처럼 쭈~~~욱.

ubuntu@ubuntu-volume1:~$ apt-get update

E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)

E: Unable to lock directory /var/lib/apt/lists/

E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)

E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?

ubuntu@ubuntu-volume1:~$ sudo apt-get update

sudo: unable to resolve host ubuntu-volume1

Get:1 http://security.ubuntu.com wily-security InRelease

0% [1 InRelease gpgv 0 B] [Connecting to nova.clouds.archive.ubuntu.com]Splitting up /var/lib/apt/lists/partial/security.ubuntu.com_ubuntu_dists_wily-security_IErr http://security.ubuntu.com wily-security InRelease


Get:2 http://nova.clouds.archive.ubuntu.com wily InRelease

0% [2 InRelease gpgv 0 B]Splitting up /var/lib/apt/lists/partial/nova.clouds.arcErr http://nova.clouds.archive.ubuntu.com wily InReleased signature failed


Get:3 http://nova.clouds.archive.ubuntu.com wily-updates InRelease

0% [3 InRelease gpgv 0 B]Splitting up /var/lib/apt/lists/partial/nova.clouds.archive.ubuntu.com_ubuntu_dists_wily-updates_InRelease into data and signature failErr http://nova.clouds.archive.ubuntu.com wily-updates InRelease


Get:4 http://nova.clouds.archive.ubuntu.com wily-backports InRelease

0% [4 InRelease gpgv 0 B]Splitting up /var/lib/apt/lists/partial/nova.clouds.archive.ubuntu.com_ubuntu_dists_wily-backports_InRelease into data and signature faIgn http://nova.clouds.archive.ubuntu.com wily-backports InRelease

W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://security.ubuntu.com wily-security InRelease: Clearsigned file isn't valid, got 'NODATA' (does the network require authentication?)


W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://nova.clouds.archive.ubuntu.com wily InRelease: Clearsigned file isn't valid, got 'NODATA' (does the network require authentication?)


W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://nova.clouds.archive.ubuntu.com wily-updates InRelease: Clearsigned file isn't valid, got 'NODATA' (does the network require authentication?)


E: GPG error: http://nova.clouds.archive.ubuntu.com wily-backports InRelease: Clearsigned file isn't valid, got 'NODATA' (does the network require authentication?)


백방으로 찾아 봤으나 답이 없는 듯 하고, Proxy를 적용하면 된다.
우분투14.04.1 LTS 버전에 squid3로 프록시 서버를 구축하는 방법입니다
우선 암호없이 사용 가능한 케이스입니다

#설치 (apt-get도 무방하지만 aptitude 사용 권유)
sudo aptitude install squid3 -y
 
#기본 설정값 백업. 귀찮으면 스킵
sudo cp /etc/squid3/squid.conf /etc/squid3/squid.conf.original   
 
#conf 파일 설정
sudo vi /etc/squid3/squid.conf
http_access allow all #http_access allow localhost의 localhost를 all로 수정
#http_access allow manager localhost 주석 처리
#http_access deny manager 주석 처리
 
#squid3 재시작
sudo service squid3 restart
 
#포트 리슨 확인 (기본포트 3128)
netstat -a | grep 3128 


[원본] http://itstarter.tistory.com/316

ubuntu instance에서 아래와 같이 설정.

$ sudo vi /etc/apt/apt.conf

Acquire::http::proxy "http://192.168.134.1:3128";

Acquire::https::proxy "https://192.168.134.1:3128";

'Cloud > Etc' 카테고리의 다른 글

LBaaS on Mitaka 구성 실패.  (0) 2016.06.22
ubuntu mitaka lbaas v2 install  (0) 2016.06.10
crudini  (0) 2016.04.21
[OpenStack Liberty 구축 후] 볼륨 사이즈 문제  (1) 2016.04.13