일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
- postgresql
- Jupyter
- perfect
- ssh
- postgres
- insert
- Materials
- centos
- nmap
- sshpass
- GoCD
- SWIFT
- appium
- openpyxl
- mysql
- ftp
- Jupyter Notebook
- ubuntu
- 실행권한
- rethinkdb
- STF
- appium server
- 28015
- nGrinder
- nohup
- port forwarding
- STF_PortForwarding
- create table
- PYTHON
- kitura
- Today
- Total
don't stop believing
apt-get 으로 install 할때 403 에러 (apt source list를 바꾸자) 본문
swift build를 위해 clang을 설치해야 하는데 403에러가 발생했습니다.
$ sudo apt-get install clang Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: linux-headers-4.10.0-28 linux-headers-4.10.0-28-generic linux-headers-4.10.0-35 linux-headers-4.10.0-35-generic linux-headers-4.10.0-37 linux-headers-4.10.0-37-generic linux-headers-4.10.0-38 linux-headers-4.10.0-38-generic linux-headers-4.10.0-40 linux-headers-4.10.0-40-generic linux-headers-4.13.0-26 linux-headers-4.13.0-26-generic linux-headers-4.13.0-31 linux-headers-4.13.0-31-generic linux-image-4.10.0-28-generic linux-image-4.10.0-35-generic linux-image-4.10.0-37-generic linux-image-4.10.0-38-generic linux-image-4.10.0-40-generic linux-image-4.13.0-26-generic linux-image-4.13.0-31-generic linux-image-extra-4.10.0-28-generic linux-image-extra-4.10.0-35-generic linux-image-extra-4.10.0-37-generic linux-image-extra-4.10.0-38-generic linux-image-extra-4.10.0-40-generic linux-image-extra-4.13.0-26-generic linux-image-extra-4.13.0-31-generic Use 'sudo apt autoremove' to remove them. The following additional packages will be installed: binfmt-support clang-3.8 libclang-common-3.8-dev libclang1-3.8 libffi-dev libjsoncpp1 libobjc-5-dev libobjc4 libtinfo-dev llvm-3.8 llvm-3.8-dev llvm-3.8-runtime Suggested packages: gnustep gnustep-devel clang-3.8-doc llvm-3.8-doc The following NEW packages will be installed: binfmt-support clang clang-3.8 libclang-common-3.8-dev libclang1-3.8 libffi-dev libjsoncpp1 libobjc-5-dev libobjc4 libtinfo-dev llvm-3.8 llvm-3.8-dev llvm-3.8-runtime 0 upgraded, 13 newly installed, 0 to remove and 101 not upgraded. Need to get 26.9 MB/46.0 MB of archives. After this operation, 244 MB of additional disk space will be used. Do you want to continue? [Y/n] Y Err:1 http://kr.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 libclang1-3.8 amd64 1:3.8-2ubuntu4 403 Forbidden Err:2 http://kr.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 libclang-common-3.8-dev amd64 1:3.8-2ubuntu4 403 Forbidden Err:3 http://kr.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 clang-3.8 amd64 1:3.8-2ubuntu4 403 Forbidden Err:4 http://kr.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 clang amd64 1:3.8-33ubuntu3.1 403 Forbidden E: Failed to fetch http://kr.archive.ubuntu.com/ubuntu/pool/universe/l/llvm-toolchain-3.8/libclang1-3.8_3.8-2ubuntu4_amd64.deb 403 Forbidden E: Failed to fetch http://kr.archive.ubuntu.com/ubuntu/pool/universe/l/llvm-toolchain-3.8/libclang-common-3.8-dev_3.8-2ubuntu4_amd64.deb 403 Forbidden E: Failed to fetch http://kr.archive.ubuntu.com/ubuntu/pool/universe/l/llvm-toolchain-3.8/clang-3.8_3.8-2ubuntu4_amd64.deb 403 Forbidden E: Failed to fetch http://kr.archive.ubuntu.com/ubuntu/pool/universe/l/llvm-defaults/clang_3.8-33ubuntu3.1_amd64.deb 403 Forbidden E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
이럴때는 source list를 바꿔줘야 합니다.
에러를 보면 http://kr.archive.ubuntu.com 이쪽에서 403 에러가 나네요. (한국 서버 관리가 안되나 봅니다.)
vim으로 source list 파일을 열어봅니다.
$ sudo vim /etc/apt/sources.list
source.list 안에있는 링크를 주석처리하고 새로운 url을 추가합니다.
#+ Ubuntu Main Repos
deb http://01.archive.ubuntu.com/ubuntu/ trusty main restricted universe multiverse
deb-src http://01.archive.ubuntu.com/ubuntu/ trusty main restricted universe multiverse
#+ Ubuntu Update Repos
deb http://01.archive.ubuntu.com/ubuntu/ trusty-security main restricted universe multiverse
deb http://01.archive.ubuntu.com/ubuntu/ trusty-updates main restricted universe multiverse
deb http://01.archive.ubuntu.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb http://01.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://01.archive.ubuntu.com/ubuntu/ trusty-security main restricted universe multiverse
deb-src http://01.archive.ubuntu.com/ubuntu/ trusty-updates main restricted universe multiverse
deb-src http://01.archive.ubuntu.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb-src http://01.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse
그리고 apt-update를 해줍니다.
$ sudo apt-get update
이제 다시 clang을 설치하면 새로운 source url에서 받아집니다.
$ sudo apt-get install clang
여기까지 입니다.
'Linux > Ubuntu' 카테고리의 다른 글
Ubuntu 고정 IP 설정하기 (0) | 2018.05.23 |
---|---|
[Ubuntu] Swift 4 설치하기 (0) | 2018.03.09 |
ssh 패스워드 없이 자동 로그인 (0) | 2018.01.02 |
nmap으로 열려있는 포트 확인 (0) | 2017.12.20 |
curl을 이용해 ftp 파일 다운로드 하기 (0) | 2017.09.27 |