开发者社区> 问答> 正文

debian stretch的source有问题

apt-get install -y cron pdftk ---> Running in 0f21c7fb46e8 Ign:1 http://mirrors.aliyun.com/debian stretch InRelease Get:2 http://mirrors.aliyun.com/debian-security stretch/updates InRelease [53.0 kB] Get:3 http://mirrors.aliyun.com/debian stretch-updates InRelease [93.6 kB] Get:4 http://mirrors.aliyun.com/debian stretch-backports InRelease [91.8 kB] Get:5 http://mirrors.aliyun.com/debian stretch Release [118 kB] Get:6 http://mirrors.aliyun.com/debian stretch Release.gpg [2410 B] Ign:7 http://mirrors.aliyun.com/debian-security stretch/updates/main Sources Ign:8 http://mirrors.aliyun.com/debian-security stretch/updates/main amd64 Packages Get:7 http://mirrors.aliyun.com/debian-security stretch/updates/main Sources [309 kB] Err:7 http://mirrors.aliyun.com/debian-security stretch/updates/main Sources Writing more data than expected (308784 > 308768) Hashes of expected file: - Filesize:308768 [weak] - SHA256:5e637caa14288e2048f14ad74ac54cdafa6fbf74ffe88c7dbb92cc5a4fae0d57 - SHA1:510eaa2e48e77e31070fe4feee5c13787de2ef78 [weak] - MD5Sum:ea39c3a11b08ad9076042e7145a5e537 [weak] Release file created at: Mon, 23 Nov 2020 11:21:25 +0000 Get:8 http://mirrors.aliyun.com/debian-security stretch/updates/main amd64 Packages [627 kB] Err:8 http://mirrors.aliyun.com/debian-security stretch/updates/main amd64 Packages

Get:9 http://mirrors.aliyun.com/debian stretch-updates/main Sources [1456 B] Get:10 http://mirrors.aliyun.com/debian stretch-updates/non-free Sources [816 B] Get:11 http://mirrors.aliyun.com/debian stretch-updates/main amd64 Packages [2596 B] Get:12 http://mirrors.aliyun.com/debian stretch-updates/non-free amd64 Packages [632 B] Get:13 http://mirrors.aliyun.com/debian stretch-backports/non-free Sources [8412 B] Get:14 http://mirrors.aliyun.com/debian stretch-backports/main Sources [557 kB] Get:15 http://mirrors.aliyun.com/debian stretch-backports/contrib Sources [6528 B] Get:16 http://mirrors.aliyun.com/debian stretch-backports/main amd64 Packages [612 kB] Get:17 http://mirrors.aliyun.com/debian stretch-backports/contrib amd64 Packages [10.9 kB] Get:18 http://mirrors.aliyun.com/debian stretch-backports/non-free amd64 Packages [33.2 kB] Get:19 http://mirrors.aliyun.com/debian stretch/main Sources [6736 kB] Get:20 http://mirrors.aliyun.com/debian stretch/contrib Sources [44.5 kB] Get:21 http://mirrors.aliyun.com/debian stretch/non-free Sources [79.1 kB] Get:22 http://mirrors.aliyun.com/debian stretch/non-free amd64 Packages [78.3 kB] Get:23 http://mirrors.aliyun.com/debian stretch/main amd64 Packages [7080 kB] Get:24 http://mirrors.aliyun.com/debian stretch/contrib amd64 Packages [50.7 kB] Fetched 16.3 MB in 6s (2695 kB/s) Reading package lists... E: Failed to fetch http://mirrors.aliyun.com/debian-security/dists/stretch/updates/main/source/Sources.xz Writing more data than expected (308784 > 308768) Hashes of expected file: - Filesize:308768 [weak] - SHA256:5e637caa14288e2048f14ad74ac54cdafa6fbf74ffe88c7dbb92cc5a4fae0d57 - SHA1:510eaa2e48e77e31070fe4feee5c13787de2ef78 [weak] - MD5Sum:ea39c3a11b08ad9076042e7145a5e537 [weak] Release file created at: Mon, 23 Nov 2020 11:21:25 +0000 E: Failed to fetch http://mirrors.aliyun.com/debian-security/dists/stretch/updates/main/binary-amd64/Packages.xz
E: Some index files failed to download. They have been ignored, or old ones used instead.

展开
收起
1095103982221472 2020-11-30 11:39:58 2770 0
来自:镜像站
1 条回答
写回答
取消 提交回答
  • 下一站是幸福

    修改debian9 stretch源

    修改配置文件/etc/apt/sources.list

    修改成163源:

    deb http://mirrors.163.com/debian/ stretch main non-free contrib deb http://mirrors.163.com/debian/ stretch-updates main non-free contrib deb http://mirrors.163.com/debian/ stretch-backports main non-free contrib deb-src http://mirrors.163.com/debian/ stretch main non-free contrib deb-src http://mirrors.163.com/debian/ stretch-updates main non-free contrib deb-src http://mirrors.163.com/debian/ stretch-backports main non-free contrib deb http://mirrors.163.com/debian-security/ stretch/updates main non-free contrib deb-src http://mirrors.163.com/debian-security/ stretch/updates main non-free contrib

    1
    2
    3
    4
    5
    6
    7
    8
    

    修改成清华源:

    deb https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch main non-free contrib deb https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch-updates main non-free contrib deb https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch-backports main non-free contrib deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch main non-free contrib deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch-updates main non-free contrib deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch-backports main non-free contrib deb https://mirrors.tuna.tsinghua.edu.cn/debian-security/ stretch/updates main non-free contrib deb-src https://mirrors.tuna.tsinghua.edu.cn/debian-security/ stretch/updates main non-free contrib

    1
    2
    3
    4
    5
    6
    7
    8
    

    修改成科大源:

    deb http://mirrors.ustc.edu.cn/debian/ stretch main non-free contrib deb http://mirrors.ustc.edu.cn/debian/ stretch-updates main non-free contrib deb http://mirrors.ustc.edu.cn/debian/ stretch-backports main non-free contrib deb-src http://mirrors.ustc.edu.cn/debian/ stretch main non-free contrib deb-src http://mirrors.ustc.edu.cn/debian/ stretch-updates main non-free contrib deb-src http://mirrors.ustc.edu.cn/debian/ stretch-backports main non-free contrib deb http://mirrors.ustc.edu.cn/debian-security/ stretch/updates main non-free contrib deb-src http://mirrors.ustc.edu.cn/debian-security/ stretch/updates main non-free contrib 附上原文出处链接及本声明。 原文链接:https://blog.csdn.net/krupzone/article/details/78957013

    2021-04-02 22:02:50
    赞同 展开评论 打赏
问答标签:
问答地址:
来源圈子
更多
收录在圈子:
+ 订阅
问答排行榜
最热
最新

相关电子书

更多
Debian GNU/Linux 安全合规之路 立即下载
EasyMapReduce: leverage Spark and Docker to scale scientific tools 立即下载
低代码开发师(初级)实战教程 立即下载