Debian

Debian HC4 NAS 無法解析任何主機

  • April 15, 2021

stackoverflow 和 linux 使用的新手,在 HC4 上設置了 NAS,目前正在嘗試設置 Steam 記憶體,在安裝 docker 後,我試圖安裝 network-manager,這導致我陷入了一個兔子洞,因為它返回了以下錯誤:

W: Failed to fetch http://deb.debian.org/debian/dists/stable/InRelease  Could not resolve 'deb.debian.org'
W: Failed to fetch http://deb.debian.org/debian/dists/buster-updates/InRelease  Could not resolve 'deb.debian.org'
W: Failed to fetch http://deb.debian.org/debian-security/dists/buster/updates/InRelease  Could not resolve 'deb.debian.org'
W: Failed to fetch http://ftp.debian.org/debian/dists/buster-backports/InRelease  Could not resolve 'ftp.debian.org'
W: Failed to fetch https://download.docker.com/linux/debian/dists/buster/InRelease  Could not resolve 'download.docker.com'
W: Failed to fetch http://packages.openmediavault.org/public/dists/erasmus/InRelease  Could not resolve 'packages.openmediavault.org'
W: Failed to fetch https://openmediavault-plugin-developers.github.io/packages/debian/dists/usul/InRelease  Could not resolve 'openmediavault-plugin-developers.github.io'
W: Failed to fetch http://packages.openmediavault.org/public/dists/usul/InRelease  Could not resolve 'packages.openmediavault.org'
W: Failed to fetch http://ppa.linuxfactory.or.kr/dists/buster/InRelease  Could not resolve 'ppa.linuxfactory.or.kr'
W: Some index files failed to download. They have been ignored, or old ones used instead.
W: Target Packages (stable/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:24 and /etc/apt/sources.list.d/docker.list:1
W: Target Translations (stable/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:24 and /etc/apt/sources.list.d/docker.list:1
W: Target Packages (stable/binary-arm64/Packages) is configured multiple times in /etc/apt/sources.list.d/docker.list:1 and /etc/apt/sources.list.d/omvextras.list:2
W: Target Packages (stable/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:24 and /etc/apt/sources.list.d/omvextras.list:2
W: Target Translations (stable/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:24 and /etc/apt/sources.list.d/omvextras.list:2

現在我使用 apt-get update 得到這些錯誤,並且 apt-get install network-manager 返回

Reading package lists... Done
Building dependency tree
Reading state information... Done
Package network-manager is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'network-manager' has no installation candidate

因為我搞砸了很多,這是我的sources.list:


#------------------------------------------------------------------------------#
#                   OFFICIAL DEBIAN REPOS
#------------------------------------------------------------------------------#

###### Debian Main Repos
deb http://deb.debian.org/debian stable main
deb-src http://deb.debian.org/debian stable main

deb http://deb.debian.org/debian buster-updates main
deb-src http://deb.debian.org/debian buster-updates main

deb http://deb.debian.org/debian-security/ buster/updates main
deb-src http://deb.debian.org/debian-security/ buster/updates main

deb http://ftp.debian.org/debian buster-backports main
deb-src http://ftp.debian.org/debian buster-backports main

#------------------------------------------------------------------------------#
#                      UNOFFICIAL  REPOS
#------------------------------------------------------------------------------#

###### 3rd Party Binary Repos
###Docker CE
deb [arch=amd64] https://download.docker.com/linux/debian buster stable

###openmediavault
deb http://packages.openmediavault.org/public erasmus main
deb-src http://packages.openmediavault.org/public erasmus main

任何幫助或指示我的方向將不勝感激

好吧,一直在搞亂它,問題似乎是 eth0 的 OMV 配置和網路管理器配置的設置不同,因此在手動將兩者設置為相同的設置後,它能夠解析主機。

以下是 debian buster 的辦公室 debian 儲存庫範例:

deb http://ftp.debian.org/debian buster main contrib 非免費

deb http://ftp.debian.org/debian buster-updates main contrib 非免費

deb http://security.debian.org buster/更新 main contrib 非免費

deb http://ftp.debian.org/debian buster-backports main contrib 非免費

deb-src http://ftp.debian.org/debian buster main contrib 非免費

deb-src http ://ftp.debian.org/debian buster-updates main contrib 非免費

deb-src http://security.debian.org buster/updates main contrib 非免費

deb-src http://ftp.debian.org /debianbuster-backports 主要貢獻非免費\

引用自:https://unix.stackexchange.com/questions/644821