[질문]debian에서 aptitude install 실행시 에러

analogue2의 이미지

안녕하십니까 초보 관리자 입니다.

이번에 aptitude 명령어를 사용하던중 문제가 생겨 3일간 구글과 씨름하다가 도저히 해결을 못보겠어서

염치 불구하고 이렇게 질문을 드립니다.

최초 aptitude install을 실행할때 이런 메세지가 뜨면서 실행이 안됐습니다.

WARNING: untrusted versions of the following packages will be installed!

Untrusted packages could compromise your system's security.
You should only proceed with the installation if you are certain that
this is what you want to do.

libneon26 libapr1 subversion apache2-utils libsvn1 apache2.2-common libapache2-svn libpq4 libaprutil1 libsqlite3-0

Do you want to ignore this warning and proceed anyway?
To continue, enter "Yes"; to abort, enter "No": yes
Writing extended state information... Done
Err http://ftp.kr.debian.org etch/main libapr1 1.2.7-8.2
Could not resolve 'ftp.kr.debian.org'
Err http://ftp.kr.debian.org etch/main libpq4 8.1.13-0etch1
Could not resolve 'ftp.kr.debian.org'
Err http://ftp.kr.debian.org etch/main libsqlite3-0 3.3.8-1.1
Could not resolve 'ftp.kr.debian.org'
Err http://ftp.kr.debian.org etch/main libaprutil1 1.2.7+dfsg-2
Could not resolve 'ftp.kr.debian.org'
Err http://ftp.kr.debian.org etch/main apache2-utils 2.2.3-4+etch6
Could not resolve 'ftp.kr.debian.org'
Err http://ftp.kr.debian.org etch/main apache2.2-common 2.2.3-4+etch6
Could not resolve 'ftp.kr.debian.org'
Err http://ftp.kr.debian.org etch/main libneon26 0.26.2-4
Could not resolve 'ftp.kr.debian.org'
Err http://ftp.kr.debian.org etch/main libsvn1 1.4.2dfsg1-2
Could not resolve 'ftp.kr.debian.org'
Err http://ftp.kr.debian.org etch/main libapache2-svn 1.4.2dfsg1-2
Could not resolve 'ftp.kr.debian.org'
Err http://ftp.kr.debian.org etch/main subversion 1.4.2dfsg1-2
Could not resolve 'ftp.kr.debian.org'
E: Failed to fetch http://ftp.kr.debian.org/debian/pool/main/a/apr/libapr1_1.2.7-8.2_amd64.deb: Could not resolve 'ftp.kr.debian.org'

자세히는 모르겠지만 ftp.kr.debian.org 가 잘못된거라는거 같아

aptitude가 제대로 실행이 되는 다른 시스템의 /etc/apt/sources.list와 비교를 해보니 제대로 입력이 되어 있었습니다.

그래서 다음으로 dns가 ftp.kr.debian.org 를 못찾는건가 해서 dns 설정을 확인 했습니다.

/etc/network/interfaces를 확인했더니

# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 168.126.63.1

라고 맞게 설정 되어 있었고

/etc/resolv.conf를 확인해 봤더니

#nameserver 168.126.63.1

주석 처리가 되어 있어서 이거다!!! 한건 해결!!! 이러고 주석을 제거했습니다.

네트워크를 다시 실행하고 aptitude를 다시 실행했더니 결과는 OTL...

변화가 없었습니다.

구글링을 아무리 해봐도 뭐가 문제인지 알수가 없어서

이것저것 실험을 해봤는데

# ping www.google.co.kr
ping: unknown host www.google.co.kr

www.google.co.kr로 ping을 보내 보면 저렇게 뜨는데

nslookup으로 알아낸 www.google.co.kr의 ip로 ping을 보내면

잘 갑니다.

nslookup으로 ip주소를 잘 알아오는거 보면 dns가 잘못 동작하는것도 아닐것인데

아무리 고민해봐도 도저히 모르겠어서 이렇게 질문을 올립니다.

제가 문제의 핵심조차 파악하지 못해서 전반적인 설명을 드리느라 글이 두서 없이 길어졌습니다.

여러분들의 답변 기다리겠습니다.

그냥 소스도 마구 던져주시면 감사하겠습니다.

dream3의 이미지

nameserver 168.126.63.1
nameserver 168.126.63.2
search kornet

이렇게 넣어보고 한번 해보시죠

dns를 제대로 못찾아서 그런 것 같은데
reboot 를 해야되는 지는 기억이 안나서

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.