debian 没有内置 ufw, 怎么解决?

2022-10-23 15:43:35 +08:00
 Cify

apt 也没法安装.

2982 次点击
所在节点    Linux
14 条回复
edis0n0
2022-10-23 15:45:22 +08:00
sudo apt update && sudo apt install -y ufw
Cify
2022-10-23 16:08:59 +08:00
@edis0n0 早就试过了.

0% [Working]E: Package 'ufw' has no installation candidate
Ign:1 cdrom://[Debian GNU/Linux 11.5.0 _Bullseye_ - Official amd64 DVD Binary-1 20220910-10:40] bullseye InRelease
Err:2 cdrom://[Debian GNU/Linux 11.5.0 _Bullseye_ - Official amd64 DVD Binary-1 20220910-10:40] bullseye Release
Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
Hit:3 https://download.docker.com/linux/debian bullseye InRelease
Get:4 http://security.debian.org/debian-security bullseye-security InRelease [48.4 kB]
Get:5 http://security.debian.org/debian-security bullseye-security/main Sources [166 kB]
Get:6 http://security.debian.org/debian-security bullseye-security/main amd64 Packages [191 kB]
Reading package lists... Done
E: The repository 'cdrom://[Debian GNU/Linux 11.5.0 _Bullseye_ - Official amd64 DVD Binary-1 20220910-10:40] bullseye Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
hingle
2022-10-23 16:12:49 +08:00
edis0n0
2022-10-23 16:17:34 +08:00
@hingle #3 不建议用 tuna 这些教育网源,很不稳定,不是连不上就动不动 10kb/s 商业云的源相比之下要稳定不少,就是同步慢
7RTDKSAK
2022-10-23 16:28:34 +08:00
@Cify 把 cdrom 那条源注释掉啊,那是安装过程中你选错了
Cify
2022-10-23 16:32:33 +08:00
@7RTDKSAK 早注释了, 所以很奇怪.
Cavolo
2022-10-23 16:41:47 +08:00
@Cify 这哪是 debian 的问题
Aixiaoa
2022-10-23 16:46:30 +08:00
把源全部注释。全换国内的。
wtks1
2022-10-23 17:02:30 +08:00
@Cify 把文件清空,重新写入需要的源地址试试
adoal
2022-10-23 17:13:57 +08:00
你 source.list 里的源地址:
1. 不存在的 CDROM
2. 是 Docker ,不是 Debian
3. 是 Debian security updates ,不是主仓库
当然没有主仓库里的大多数包了。
Cify
2022-10-23 17:44:13 +08:00
@Aixiaoa 搞定了, 谢谢了.


@adoal 没那么多问题, 刚报障宽带, 路由器经常掉线问题.
fuckaholic
2022-10-24 09:38:41 +08:00
@Cify 这样很容易让帮助者却步
GoodRui
2022-10-24 10:40:28 +08:00
@edis0n0 阿里云的源倒是稳定,稳定在 100kb ~ 200kb ,我自己家的家宽,公司的企业专线,客户的服务器也是企业专线都是,难道是地域原因?
lexno
2022-10-24 12:07:34 +08:00
@GoodRui #13 阿里云的源现在到外网都很慢,要是服务器是阿里云还可以用,其他的就别用阿里云了

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/889116

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX