Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
Cify
V2EX  ›  Linux

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

  •  
  •   Cify · Oct 23, 2022 · 4142 views
    This topic created in 1297 days ago, the information mentioned may be changed or developed.

    apt 也没法安装.

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


    @adoal 没那么多问题, 刚报障宽带, 路由器经常掉线问题.
    fuckaholic
        12
    fuckaholic  
       Oct 24, 2022   ❤️ 1
    @Cify 这样很容易让帮助者却步
    GoodRui
        13
    GoodRui  
       Oct 24, 2022 via iPhone
    @edis0n0 阿里云的源倒是稳定,稳定在 100kb ~ 200kb ,我自己家的家宽,公司的企业专线,客户的服务器也是企业专线都是,难道是地域原因?
    lexno
        14
    lexno  
       Oct 24, 2022
    @GoodRui #13 阿里云的源现在到外网都很慢,要是服务器是阿里云还可以用,其他的就别用阿里云了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   938 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 58ms · UTC 21:22 · PVG 05:22 · LAX 14:22 · JFK 17:22
    ♥ Do have faith in what you're doing.