mqttmqtt

文章讲述了用户在RaspberryPi上遇到apt-getupdate时因DNS解析问题而无法连接到Debian仓库的情况,随后给出了设置Dockerdaemon(可能为rootless模式)的步骤和安全提示。
摘要由CSDN通过智能技术生成

ailixia@raspberrypi:~ $ sudo su
root@raspberrypi:/home/ailixia# apt-get update
错误:1 http://deb.debian.org/debian bullseye InRelease                                                    
  暂时不能解析域名“deb.debian.org”
错误:2 http://security.debian.org/debian-security bullseye-security InRelease                             
  暂时不能解析域名“security.debian.org”
错误:3 http://archive.raspberrypi.org/debian bullseye InRelease                                           
  暂时不能解析域名“archive.raspberrypi.org”
错误:4 http://deb.debian.org/debian bullseye-updates InRelease                                            
  暂时不能解析域名“deb.debian.org”
正在读取软件包列表... 完成      
W: 无法下载 http://deb.debian.org/debian/dists/bullseye/InRelease  暂时不能解析域名“deb.debian.org”
W: 无法下载 http://security.debian.org/debian-security/dists/bullseye-security/InRelease  暂时不能解析域名“security.debian.org”
W: 无法下载 http://deb.debian.org/debian/dists/bullseye-updates/InRelease  暂时不能解析域名“deb.debian.org”
W: 无法下载 http://archive.raspberrypi.org/debian/dists/bullseye/InRelease  暂时不能解析域名“archive.raspberrypi.org”
W: 部分索引文件下载失败。如果忽略它们,那将转而使用旧的索引文件。
root@raspberrypi:/home/ailixia# apt-get update
错误:1 http://security.debian.org/debian-security bullseye-security InRelease                             
  暂时不能解析域名“security.debian.org”
错误:2 http://archive.raspberrypi.org/debian bullseye InRelease                                           
  暂时不能解析域名“archive.raspberrypi.org”
错误:3 http://deb.debian.org/debian bullseye InRelease                                                    
  暂时不能解析域名“deb.debian.org”
错误:4 http://deb.debian.org/debian bullseye-updates InRelease
  暂时不能解析域名“deb.debian.org”
正在读取软件包列表... 完成      
W: 无法下载 http://deb.debian.org/debian/dists/bullseye/InRelease  暂时不能解析域名“deb.debian.org”
W: 无法下载 http://security.debian.org/debian-security/dists/bullseye-security/InRelease  暂时不能解析域名“security.debian.org”
W: 无法下载 http://deb.debian.org/debian/dists/bullseye-updates/InRelease  暂时不能解析域名“deb.debian.org”
W: 无法下载 http://archive.raspberrypi.org/debian/dists/bullseye/InRelease  暂时不能解析域名“archive.raspberrypi.org”
W: 部分索引文件下载失败。如果忽略它们,那将转而使用旧的索引文件。
root@raspberrypi:/home/ailixia# apt-get update
命中:1 http://security.debian.org/debian-security bullseye-security InRelease
获取:2 http://deb.debian.org/debian bullseye InRelease [116 kB]
获取:3 http://archive.raspberrypi.org/debian bullseye InRelease [23.6 kB]
获取:4 http://deb.debian.org/debian bullseye-updates InRelease [44.1 kB]
获取:5 http://deb.debian.org/debian bullseye/main arm64 Packages [7,957 kB]
获取:6 http://archive.raspberrypi.org/debian bullseye/main arm64 Packages [307 kB]
获取:7 http://archive.raspberrypi.org/debian bullseye/main armhf Packages [313 kB]
获取:8 http://deb.debian.org/debian bullseye/main armhf Packages [7,842 kB]                                                                                                                                                                  
获取:9 http://deb.debian.org/debian bullseye/main Translation-en [6,236 kB]                                                                                                                                                                  
获取:10 http://deb.debian.org/debian bullseye/contrib arm64 Packages [40.8 kB]                                                                                                                                                               
获取:11 http://deb.debian.org/debian bullseye/contrib armhf Packages [40.1 kB]                                                                                                                                                               
获取:12 http://deb.debian.org/debian bullseye/contrib Translation-en [46.9 kB]                                                                                                                                                               
获取:13 http://deb.debian.org/debian bullseye/non-free armhf Packages [56.0 kB]                                                                                                                                                              
获取:14 http://deb.debian.org/debian bullseye/non-free arm64 Packages [72.3 kB]                                                                                                                                                              
获取:15 http://deb.debian.org/debian bullseye/non-free Translation-en [92.2 kB]                                                                                                                                                              
获取:16 http://deb.debian.org/debian bullseye-updates/main arm64 Packages [16.3 kB]                                                                                                                                                          
获取:17 http://deb.debian.org/debian bullseye-updates/main armhf Packages [16.3 kB]                                                                                                                                                          
获取:18 http://deb.debian.org/debian bullseye-updates/main Translation-en [10.9 kB]                                                                                                                                                          
已下载 20.1 MB,耗时 1分 23秒 (243 kB/s)                                                                                                                                                                                                     
正在读取软件包列表... 完成
N: 仓库'http://deb.debian.org/debian bullseye InRelease'将其'Version'值从'11.3'修改到了'11.9'
N: 仓库'http://deb.debian.org/debian bullseye InRelease'将其'Suite'值从'stable'修改到了'oldstable'
N: 仓库'http://deb.debian.org/debian bullseye-updates InRelease'将其'Suite'值从'stable-updates'修改到了'oldstable-updates'
root@raspberrypi:/home/ailixia# curl -sSL https://get.docker.com | sh
# Executing docker install script, commit: e5543d473431b782227f8908005543bb4389b8de
+ sh -c apt-get update -qq >/dev/null
+ sh -c DEBIAN_FRONTEND=noninteractive apt-get install -y -qq apt-transport-https ca-certificates curl >/dev/null
+ sh -c install -m 0755 -d /etc/apt/keyrings
+ sh -c curl -fsSL "https://download.docker.com/linux/debian/gpg" | gpg --dearmor --yes -o /etc/apt/keyrings/docker.gpg
+ sh -c chmod a+r /etc/apt/keyrings/docker.gpg
+ sh -c echo "deb [arch=arm64 signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian bullseye stable" > /etc/apt/sources.list.d/docker.list
+ sh -c apt-get update -qq >/dev/null
+ sh -c DEBIAN_FRONTEND=noninteractive apt-get install -y -qq docker-ce docker-ce-cli containerd.io docker-compose-plugin docker-ce-rootless-extras docker-buildx-plugin >/dev/null
+ sh -c docker version
Client: Docker Engine - Community
 Version:           25.0.4
 API version:       1.44
 Go version:        go1.21.8
 Git commit:        1a576c5
 Built:             Wed Mar  6 16:32:16 2024
 OS/Arch:           linux/arm64
 Context:           default

Server: Docker Engine - Community
 Engine:
  Version:          25.0.4
  API version:      1.44 (minimum version 1.24)
  Go version:       go1.21.8
  Git commit:       061aa95
  Built:            Wed Mar  6 16:32:16 2024
  OS/Arch:          linux/arm64
  Experimental:     false
 containerd:
  Version:          1.6.28
  GitCommit:        ae07eda36dd25f8a1b98dfbf587313b99c0190bb
 runc:
  Version:          1.1.12
  GitCommit:        v1.1.12-0-g51d5e94
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

================================================================================

To run Docker as a non-privileged user, consider setting up the
Docker daemon in rootless mode for your user:

    dockerd-rootless-setuptool.sh install

Visit https://docs.docker.com/go/rootless/ to learn about rootless mode.


To run the Docker daemon as a fully privileged service, but granting non-root
users access, refer to https://docs.docker.com/go/daemon-access/

WARNING: Access to the remote API on a privileged Docker daemon is equivalent
         to root access on the host. Refer to the 'Docker daemon attack surface'
         documentation for details: https://docs.docker.com/go/attack-surface/

================================================================================

root@raspberrypi:/home/ailixia# 

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

黄盖233

谢谢你!我的余生

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值