PKUOSC / issues

You can submit issues here about mirror site.
6 stars 0 forks source link

Ubuntu 22.04的包less的文件似乎不全 #36

Closed ImpleLee closed 4 months ago

ImpleLee commented 4 months ago
$ apt show less

Package: less
Version: 590-1ubuntu0.22.04.2
Priority: important
Section: text
Origin: Ubuntu
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Milan Kupcevic <milan@debian.org>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 329 kB
Depends: libc6 (>= 2.34), libtinfo6 (>= 6)
Homepage: http://www.greenwoodsoftware.com/less/
Task: minimal
Download-Size: 143 kB
APT-Sources: http://mirrors.pku.edu.cn/ubuntu jammy-security/main amd64 Packages
Description: 分页程序,类似 more
 本软件包提供“less”,一个文件分页器(即,一个可以一次显示一屏幕文本的高效率 工具)。与基本的分页器程序“more”相比,less
 提供了更多功能。作为 GNU 计划的 一部分,它在很多类 UNIX 系统上被作为标准分页器。
 .
 同时还有“lessecho”,一个简单的实用程序用于确保空间参数被正确引用; “lesskey”,一个用于修改标准(类似 vi)按键绑定的工具;
 还有“lesspipe”,一个用于输入特定类型的过滤器,如 .doc 或 .txt.gz 文件。
$ sudo apt install less --only-upgrade
正在读取软件包列表... 完成
正在分析软件包的依赖关系树... 完成
正在读取状态信息... 完成                 
下列软件包将被升级:
  less
升级了 1 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 58 个软件包未被升级。
需要下载 143 kB 的归档。
解压缩后会消耗 0 B 的额外空间。
错误:1 http://mirrors.pku.edu.cn/ubuntu jammy-security/main amd64 less amd64 590-1ubuntu0.22.04.2
  404  Not Found
E: 无法下载 http://mirrors.pku.edu.cn/ubuntu/pool/main/l/less/less_590-1ubuntu0.22.04.2_amd64.deb  404  Not Found
E: 有几个软件包无法下载,要不运行 apt-get update 或者加上 --fix-missing 的选项再试试?

在网页中查看对应目录确实没有对应的文件(对照清华的镜像则确实有,但他们的更新是今天中午)。没有查到Ubuntu的镜像格式,所以不清楚故障原因。

ImpleLee commented 4 months ago

好像找到了,在 http://mirrors.pku.edu.cn/ubuntu/dists/jammy-security/main/binary-amd64/Packages.gz 中有这样的片段

Package: less
Architecture: amd64
Version: 590-1ubuntu0.22.04.2
Multi-Arch: foreign
Priority: important
Section: text
Origin: Ubuntu
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Milan Kupcevic <milan@debian.org>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 321
Depends: libc6 (>= 2.34), libtinfo6 (>= 6)
Filename: pool/main/l/less/less_590-1ubuntu0.22.04.2_amd64.deb
Size: 142744
MD5sum: 1b1bc579f409b01b52f3225dafc38279
SHA1: 84476744e23b27975c0ea66848960cda46dc4820
SHA256: b63190aec9fc4fbffe68035cd5e516b81d0f4d676a193b4e1b6f32f638773636
SHA512: 774ff1f1f3d788b60f6824e1a635282b1fa91688d9b5a93295dce448783958dd5dcfe8ef525e8bc471adc72f407e7d14e80d25fab9c45c4553dde439443153f3
Homepage: http://www.greenwoodsoftware.com/less/
Description: pager program similar to more
Task: minimal
Description-md5: a2c2d2eff1fb9762b71faf7540cf8dce

但是在对应的路径找不到对应的文件。

leavelet commented 4 months ago

安装新包之前需要更新数据库。

sudo apt update
ImpleLee commented 4 months ago

安装新包之前需要更新数据库。

sudo apt update

尽管这里没有展示,但我确实update了。为了核实,这里给出update后的结果。

$ sudo apt update && sudo apt install less --only-upgrade
命中:1 http://mirrors.pku.edu.cn/ubuntu jammy InRelease
命中:2 http://mirrors.pku.edu.cn/ubuntu jammy-updates InRelease                                                                                                                            
命中:3 http://mirrors.pku.edu.cn/ubuntu jammy-backports InRelease                                                                                                                          
命中:4 http://mirrors.pku.edu.cn/ubuntu jammy-security InRelease                                                                                                                           
命中:5 http://dl.google.com/linux/chrome/deb stable InRelease                                                                                                                              
获取:6 https://deb.nodesource.com/node_16.x focal InRelease [4,583 B]                                                                                                                      
命中:7 https://download.docker.com/linux/ubuntu focal InRelease                                                                                                                            
命中:8 https://storage.googleapis.com/bazel-apt stable InRelease                                                                                                                           
命中:9 https://packages.microsoft.com/repos/code stable InRelease                                                                                                                          
命中:10 https://download.vscodium.com/debs vscodium InRelease                                                                                                                              
获取:11 https://zotero.retorque.re/file/apt-package-archive ./ InRelease [2,153 B]                                                                                                         
获取:12 http://download.opensuse.org/repositories/home:/bluca:/openconnect:/release/Ubuntu_22.04  InRelease [1,587 B]                                                  
命中:13 https://apt.kitware.com/ubuntu focal InRelease                                                                             
命中:14 https://ppa.launchpadcontent.net/inkscape.dev/stable/ubuntu jammy InRelease
命中:15 https://ppa.launchpadcontent.net/mozillateam/ppa/ubuntu jammy InRelease
命中:16 https://ppa.launchpadcontent.net/neovim-ppa/stable/ubuntu jammy InRelease
命中:17 https://ppa.launchpadcontent.net/qbittorrent-team/qbittorrent-stable/ubuntu jammy InRelease
命中:18 http://ppa.launchpad.net/bartbes/love-stable/ubuntu jammy InRelease                                                                                                                
命中:19 http://ppa.launchpad.net/git-core/ppa/ubuntu jammy InRelease                                                                                                                       
命中:20 http://ppa.launchpad.net/plt/racket/ubuntu jammy InRelease                                                                                                                         
已下载 8,323 B,耗时 9秒 (936 B/s)                                                                                                                                                         
正在读取软件包列表... 完成
正在分析软件包的依赖关系树... 完成
正在读取状态信息... 完成                 
有 59 个软件包可以升级。请执行 ‘apt list --upgradable’ 来查看它们。
正在读取软件包列表... 完成
正在分析软件包的依赖关系树... 完成
正在读取状态信息... 完成                 
下列软件包将被升级:
  less
升级了 1 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 58 个软件包未被升级。
需要下载 143 kB 的归档。
解压缩后会消耗 0 B 的额外空间。
错误:1 http://mirrors.pku.edu.cn/ubuntu jammy-security/main amd64 less amd64 590-1ubuntu0.22.04.2
  404  Not Found
E: 无法下载 http://mirrors.pku.edu.cn/ubuntu/pool/main/l/less/less_590-1ubuntu0.22.04.2_amd64.deb  404  Not Found
E: 有几个软件包无法下载,要不运行 apt-get update 或者加上 --fix-missing 的选项再试试?
leavelet commented 4 months ago

确实是我们的问题,感谢指出!我们检查下

fuzhenxin commented 4 months ago

问题由于rsync同步上游的时候,rsync拉索引的时候这个文件还不存在,但是rsync拉文件的时候由于索引库更新了,所以会拉新的索引库。已经触发一次同步并修复了。正在考虑一些方案削弱这种问题影响,感谢提醒。

ImpleLee commented 4 months ago

https://wiki.ubuntu.com/Mirrors/Scripts 似乎提供了一些可能有关的脚本,说不定可以参考一下。

fuzhenxin commented 4 months ago

看这个脚本能很大程度缓解,已更新,Thanks!