apt install 시 connecting error 문제
맛비님 안녕하세요, 이제 막 수강 시작한 막학기 학부생입니다.
[Hello World 프로그램] 강좌에서 gedit 설치 시도하는 부분에서 해결 못하고 있는 에러가 있어서 문의 남깁니다.
sudo apt install gedit
실행했을 때, 설치가 진행되는 듯 하다가
[Connecting to archive.ubuntu.com]에서 진행이 막히고 아래와 같이 Error가 반복적으로 뜹니다.
구글링을 통해 해결해보려 했으나,
많은 사이트에서 반복적으로 확인되는 해결법 중
위 방법과,
위 두 방법 모두 해결이 되지 않아서요..
앞으로 공부하려면 이정도는 스스로 해결해나갈 수 있어야 할텐데, 부끄럽지만서도 혹 간단한 해결책이 있을까 하여 문의 드려봅니다.
감사합니다.
답변 1
1
안녕하세요. :)
확인 했구요. 회사 컴이 ubuntu 가 아니라서 재현을 못하겠네요.
발생한 에러 메세지로 구글링을 해보니
해당 우분투 서버에 등록된 DNS 에서 kr.archive.ubuntu.com 를 찾을 수가 없는상황. 이라고 검색이 되네요.
집에가서 제 머신에서 확인해볼께요.
한가지 확인해 보실께, 다음 명령어를 치셔서 나오는 화면을 올려주시면 답변에 도움이 될 것 같아요.
cat /etc/resolv.conf
다음은 제가 확인한 link 에요.
http://1004lucifer.blogspot.com/2018/01/ubuntu-temporary-failure-resolving.html
0
interfaces에서 아래와 같이 dns 추가
아래와 같이, nameserver 추가
이 때, 위 답변에 적어주신 cat / 이하 명령어 입력 시
connecting에 문제가 있었던 서버 주소
archive.ubuntu.com 과
security.ubuntu.com 주소 모두 아래 보이듯,
mirror.kakao.com 으로 바꾸어 주었습니다. (빨간 글씨 해당)
https://webdir.tistory.com/201 여기서 참고가능한 것과 같이
vi의 치환기능이 사용되지 않아 일일이 주소를 새로 써주었고,
이 때, vi에서 저장하고 나가려고 하니(:wq 입력 시)
https://stackoverflow.com/questions/8253362/etc-apt-sources-list-e212-cant-open-file-for-writing/16585073
위 사이트에 참고한, 위 명령어 입력하여 강제로 입력 후 vi 닫아주었습니다.
이후, 기존에 sudo apt install gedit 명령어 입력했을 때 아래처럼
코딩은 물론 ubuntu와 같은 리눅스 환경이 처음인지라 시행착오가 많습니다.
문의글 내용이 다소 내용이 길지만,, 혹시나 쉬운 해결법을 아신다면 도움 부탁드립니다.
0
엄청 많은 것을 트라이 해보셨군요. 리눅스하고 친해지는 과정이라고 생각하시면 좋을 것 같습니다. (긍정긍정)
아직 회사인지라, 현상만 보면
다음은 root 계정이 아닌 일반 계정으로 해당 파일을 편집하셔서 발생하는 권한문제이구요. 만약에 root 계정이셨다면 정상적으로 wq 로 저장 되셨을꺼에요.
알려주신 파일들을 제꺼를 캡쳐해서 공유드리도록 하겠습니다.
밤에 할꺼라, 내일중에 확인해보세요. :)
0
안녕하세요. :)
우선 제 머신은 잘되는 것 같습니다. 일단 지웠다가 다시 설치 해봤구요.
제꺼하고 동일한지 한번 봐주세요. 안되시면, 어떻게 안되는지 계속 댓글 주세요. 같이 해결해 보아요.
참고로 저의 WSL 의 우분투 버전은
이제 몇가지 부분을 공유드릴께요.
1. /etc/resolv.conf
2. /etc/network/interfaces (이 파일은 제 머신에서는 존재하지 않습니다.)
3. /etc/apt/sources.list (이거는 혹시 모르니 전부를 공유드립니다. 복 붙해서 써보세요. 해당 파일을 수정하실때는 sudo 를 앞에 붙여서 해주세요. 그래야 wq 로 저장이 될꺼에요. root 권한입니다.)
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://archive.ubuntu.com/ubuntu/ focal main restricted
# deb-src http://archive.ubuntu.com/ubuntu/ focal main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://archive.ubuntu.com/ubuntu/ focal-updates main restricted
# deb-src http://archive.ubuntu.com/ubuntu/ focal-updates main restricted
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://archive.ubuntu.com/ubuntu/ focal universe
# deb-src http://archive.ubuntu.com/ubuntu/ focal universe
deb http://archive.ubuntu.com/ubuntu/ focal-updates universe
# deb-src http://archive.ubuntu.com/ubuntu/ focal-updates universe
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://archive.ubuntu.com/ubuntu/ focal multiverse
# deb-src http://archive.ubuntu.com/ubuntu/ focal multiverse
deb http://archive.ubuntu.com/ubuntu/ focal-updates multiverse
# deb-src http://archive.ubuntu.com/ubuntu/ focal-updates multiverse
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
# deb-src http://archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu focal partner
# deb-src http://archive.canonical.com/ubuntu focal partner
deb http://security.ubuntu.com/ubuntu/ focal-security main restricted
# deb-src http://security.ubuntu.com/ubuntu/ focal-security main restricted
deb http://security.ubuntu.com/ubuntu/ focal-security universe
# deb-src http://security.ubuntu.com/ubuntu/ focal-security universe
deb http://security.ubuntu.com/ubuntu/ focal-security multiverse
# deb-src http://security.ubuntu.com/ubuntu/ focal-security multiverse
0
앗! 해결 되셨다니 다행입니다. :)
설계 엔지니어가 목표시라면, Linux 환경도 친해지면 (아주 많이) 좋구요.
이번기회에 gedit 이 아닌 vim 을 마스터 해보시는 것도..?
(필수는 아니에요. 하지만! Veirlog HDL 이 코드 라인 수가 상대적으로 길어서;; 번잡한 단순 노동을 필요로 할 때가 있어요. Vim 기능에 익숙해 지시면 빠르고 정확한 단순노동을 해결할 수 있습니다.)
그럼 즐공하세요 :)
latency 개념 구현
1
87
3
비바도 all os버전
1
71
2
초기화를 reset_n 이 '1'일 때가 아닌 '0' 일 때 실행시키는 이유 질문
1
71
2
다운로드용량
1
71
2
비바도리눅스설치
1
80
2
전체path복사넣기
1
62
2
Vivado 2025.2 리눅스 설치 후 실행 에러와 솔루션 (libxv_commontasks.so)
1
149
2
explorer.exe오류
1
106
3
mobaxterm설치오류
1
90
2
./build시, waveform 'divide color' 사용
1
57
2
Latch와 관련하여 (Time borrowing, Latch-based design)
1
127
2
clean 명령어가 안되는데, 따로 저장해줘야 하는지 궁금합니다.
0
62
1
안녕하세요 설치 관련 질문 드립니다.
1
63
3
16장 mealy 설계.
1
74
2
14장 Cycle 관련, Testbench 코드.
1
64
2
21강(16장) 초기값 설정이 적용되는 시점 질문
1
60
1
20강(15장) - 밀리 머신 관련하여 질문 드립니다.
1
68
2
build에러 질문
0
57
2
1장 ./build에서 에러가 나요
1
73
2
FPGA 강의 보드 문의 드립니다.
1
105
2
5장 DFF특성에 대한 질문
1
77
3
vivado linux 사용 이유.
1
137
2
메모리의 형태가 전체설계에 미치는 영향이 궁금합니다.
1
104
2
디스코드 멤버쉽 등업 관련 문제
1
92
2





