V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
Cify
V2EX  ›  Linux

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

  •  
  •   Cify · 2022-10-23 15:43:35 +08:00 · 2937 次点击
    这是一个创建于 522 天前的主题,其中的信息可能已经有所发展或是发生改变。

    apt 也没法安装.

    14 条回复    2022-10-24 12:07:34 +08:00
    edis0n0
        1
    edis0n0  
       2022-10-23 15:45:22 +08:00
    sudo apt update && sudo apt install -y ufw
    Cify
        2
    Cify  
    OP
       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
        3
    hingle  
       2022-10-23 16:12:49 +08:00
    edis0n0
        4
    edis0n0  
       2022-10-23 16:17:34 +08:00
    @hingle #3 不建议用 tuna 这些教育网源,很不稳定,不是连不上就动不动 10kb/s 商业云的源相比之下要稳定不少,就是同步慢
    7RTDKSAK
        5
    7RTDKSAK  
       2022-10-23 16:28:34 +08:00
    @Cify 把 cdrom 那条源注释掉啊,那是安装过程中你选错了
    Cify
        6
    Cify  
    OP
       2022-10-23 16:32:33 +08:00
    @7RTDKSAK 早注释了, 所以很奇怪.
    Cavolo
        7
    Cavolo  
       2022-10-23 16:41:47 +08:00 via iPhone
    @Cify 这哪是 debian 的问题
    Aixiaoa
        8
    Aixiaoa  
       2022-10-23 16:46:30 +08:00 via iPhone
    把源全部注释。全换国内的。
    wtks1
        9
    wtks1  
       2022-10-23 17:02:30 +08:00 via Android
    @Cify 把文件清空,重新写入需要的源地址试试
    adoal
        10
    adoal  
       2022-10-23 17:13:57 +08:00
    你 source.list 里的源地址:
    1. 不存在的 CDROM
    2. 是 Docker ,不是 Debian
    3. 是 Debian security updates ,不是主仓库
    当然没有主仓库里的大多数包了。
    Cify
        11
    Cify  
    OP
       2022-10-23 17:44:13 +08:00
    @Aixiaoa 搞定了, 谢谢了.


    @adoal 没那么多问题, 刚报障宽带, 路由器经常掉线问题.
    fuckaholic
        12
    fuckaholic  
       2022-10-24 09:38:41 +08:00   ❤️ 1
    @Cify 这样很容易让帮助者却步
    GoodRui
        13
    GoodRui  
       2022-10-24 10:40:28 +08:00 via iPhone
    @edis0n0 阿里云的源倒是稳定,稳定在 100kb ~ 200kb ,我自己家的家宽,公司的企业专线,客户的服务器也是企业专线都是,难道是地域原因?
    lexno
        14
    lexno  
       2022-10-24 12:07:34 +08:00
    @GoodRui #13 阿里云的源现在到外网都很慢,要是服务器是阿里云还可以用,其他的就别用阿里云了
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1264 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 23:26 · PVG 07:26 · LAX 16:26 · JFK 19:26
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.