解决临时故障解决' raspbian.raspberrypi.org'

发布于 2025-01-30 18:03:16 字数 384 浏览 5 评论 0原文

IAM无法更新我的派,我会收到以下错误 err:1 http://raspbian.raspberryperryrpi.org/raspbian 临时故障解决'raspbian.raspberrypi.org'resolv.conf

中的名称服务器是8.8.8.8

这是Ping Result root@raspberrypi:/etct ping:google.com:临时分辨率的临时故障,

我以前在我的派中安装了piehole,但是之后我已经格式化了存储卡并安装了新鲜的操作系统。请建议任何解决方案。

iam not able to update any thing on my pie, iam getting the following error
Err:1 http://raspbian.raspberrypi.org/raspbian bullseye InRelease
Temporary failure resolving 'raspbian.raspberrypi.org'

nameserver in resolv.conf is 8.8.8.8

this is the ping result root@raspberrypi:/etc# ping google.com
ping: google.com: Temporary failure in name resolution

i have previously installed piehole in my pie, but after that i have formatted the memory card and installed the fresh os. Please suggest any fix.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

梦纸 2025-02-06 18:03:16

我意识到这是超级旧的,但是如果其他任何人都从Google跌跌撞撞,我的/etc/Resolv.conf文件在添加1.1.1.1和1.0.0.1之后,只有127.0.0.1作为DNS,我能够升级。

为了更新文件,您需要更改DHCPD文件:

sudo nano /etc/dhcpcd.conf

将其添加到文件底部以添加CloudFlare DNS服务器:

static> static domain_name_servers = 1.1.1.1 1.0.0.1

或替代Google域服务器

static domain_name_servers = 8.8.4.4.4 8.8.8.8.8

然后只需重新启动DHCP服务,您应该很好地继续进行升级:

<<<<<<<<代码> sudo服务dhcpcd restart

如果您已经在配置中已经有8.8.8.8尝试了Cloudflare,则可能只需要重新启动服务即可。

I realize this is super old but in case anyone else stumbles here from google, my /etc/resolv.conf file only had 127.0.0.1 as the dns, after adding 1.1.1.1 and 1.0.0.1 I was able to upgrade.

In order to update the file you need to change the dhcpd file:

sudo nano /etc/dhcpcd.conf

add this to the bottom of the file to add the cloudflare dns servers:

static domain_name_servers=1.1.1.1 1.0.0.1

or alternatively the google domain servers

static domain_name_servers=8.8.4.4 8.8.8.8

then just restart the dhcp service and you should be good to proceed with your upgrades:

sudo service dhcpcd restart

If you have 8.8.8.8 already in the config you could try the cloudflare ones, it's possible you just need to restart the service though.

疯了 2025-02-06 18:03:16

尝试适当的升级时,我遇到了这个问题,但是我可以ping Google并访问Internet。事实证明,这与我的VPN(Mullvad)关闭了VPN服务,升级并重新启动它对我有用。
在这里回答,因为搜索时我无法在任何地方看到此解决方案。

I was having this issue when attempting apt-upgrade but I could ping google and access the internet just fine. Turns out it was related to my VPN (mullvad) turning the vpn service off, upgrading, and restarting it worked for me.
Answering here because I couldn't see this solution anywhere when searching.

执笔绘流年 2025-02-06 18:03:16

相反的情况:
切换到VPN解决了它。
没有更改dhcpcd.conf,但使用了VPN

Opposite case:
Switching to VPN solved it.
Did not change dhcpcd.conf but used a VPN

宁愿没拥抱 2025-02-06 18:03:16

由于某种原因,当我忘了用“ Myenv/bin/activate”激活虚拟环境时,我遇到了这个问题。一旦我激活了它,一切都很好。

For some reason, I had this issue when I forgot to activate my virtual environment with "source myenv/bin/activate". Once I activated it, all was fine.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文