Linux Server/Trouble Shooting

[Trouble Shooting] 우분투 apt-get update 및 설치 안될경우

실력키우기 2017. 11. 24. 07:35

[ 우분투 apt-get update 및 패키지 설치 안될경우]


----------------------------------------------------------------------------------------------------------------------------------------------------------------

1> 아래 명령어 실행


rm -rf /var/lib/apt/lists/*

apt-get update


----------------------------------------------------------------------------------------------------------------------------------------------------------------

2> 1번으로 해결이 안될경우


# cd /etc/apt

sed -i 's,http://.*ubuntu.com,http://old-releases.ubuntu.com,g' sources.list

apt-get update


----------------------------------------------------------------------------------------------------------------------------------------------------------------

3> 2번으로 해결이 안될경우


# cd /etc/apt

# vi /etc/apt/sources.list

/%s/kr.archieve.ubuntu.com/ftp.daum.net


----------------------------------------------------------------------------------------------------------------------------------------------------------------

4> 3번으로 해결이 안될경우


# dpkg --clear-avail

# dpkg --configure -a

# apt-get clean

# apt-get update


----------------------------------------------------------------------------------------------------------------------------------------------------------------

5> 4번으로 해결이 안될경우


# cd /etc/apt/sources.list.d/

# rm -rf *

# apt-get clean

# apt-get update

# apt list --upgradable

# apt-get update



참고 : https://ksy3241blog.wordpress.com/2016/06/17/sudo-apt-get-update-에러/