Debian Stretch apt-getアップデートが "ftp.de.debian.org"の問題を解決できませんでした。

Debian Stretch apt-getアップデートが

JessieからStretchにDebianを更新してから適切なアップデートを入手失敗する。

エラーメッセージ:

Err:1 http://ftp.de.debian.org/debian stretch InRelease
  Temporary failure resolving 'ftp.de.debian.org'

インターネットとDNSはうまく動作しています。

この回避策は問題を解決します。 拡張された適切な更新が失敗しました。イメージに InRelease ファイルがありません。

しかし、私の質問は次のとおりです。 正常に再利用できるようにaptを変更することは可能ですか?

出力:ftp.de.debian.org採掘:

; <<>> DiG 9.10.3-P4-Debian <<>> ftp.de.debian.org
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 20953
;; flags: qr rd ra ad; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;ftp.de.debian.org.             IN      A

;; ANSWER SECTION:
ftp.de.debian.org.      365     IN      A       141.76.2.4

;; Query time: 31 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Tue Feb 26 10:30:37 CET 2019
;; MSG SIZE  rcvd: 62

ls -l /etc/resolv.conf 出力:-rw-r--r-- 1 root root 62 Feb 19 13:07 /etc/resolv.conf

出力猫/etc/resolv.confnameserver 8.8.8.8 nameserver 8.8.4.4 nameserver 192.168.1.2

編集する: 猫/etc/nsswitch.conf

# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc-reference' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.

passwd:         compat
group:          compat
shadow:         compat

hosts:  dns files
networks:       files

protocols:      db files
services:       db files
ethers:         db files
rpc:            db files

netgroup:       nis

ベストアンサー1

おすすめ記事