(base) [lenong0427 debtap-3.4.2]# ./debtap -u
tput: unknown terminal "xterm-256color"
tput: unknown terminal "xterm-256color"
==> Synchronizing pkgfile database...
:: Updating 5 repos...
multilib is up to date
core is up to date
extra is up to date
community is up to date
archlinuxcn is up to date
==> Synchronizing debtap database...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 10.7M 100 10.7M 0 0 4819k 0 0:00:02 0:00:02 --:--:-- 4819k
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 98k 100 98k 0 0 93612 0 0:00:01 0:00:01 --:--:-- 93612
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 62731 100 62731 0 0 63046 0 --:--:-- --:--:-- --:--:-- 62982
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (22) The requested URL returned error: 404 Not Found
gzip: /var/cache/debtap/ubuntu-packages-files.gz: unexpected end of file
Synchronization failed. Exiting...
原因是因为 debtap文件中 85行由于本机缺少ssl文件导致访问不了https://packages.ubuntu.com
拿不到最新的稳定版本 下载路径肯定就出错了 就报出curl: (22) The requested URL returned error: 404 Not Found
浏览器是可以正常访问https://packages.ubuntu.com 因为浏览器功能非常强大 他有ssl文件 但是curl命令没有,需要下载ssl文件。
首先第一步就是
1.curl https://packages.ubuntu.com
出现 curl(77)错误 那就说明你和我是同一个问题 缺少ssl文件 访问不了https开头的ubuntu网站
下载这个carcert文件 创建文件夹 放到相应位置即可
2.sudo mkdir -p /build/anaconda/pkg/anaconda/opt/anaconda/ssl/(请你写上你自己的文件夹路径)
3.下载cacert.pem文件 拷贝进去 重新执行 sudo debtap -u 即可 效果如下图
报了一个软件组没找到 不影响使用