WARNING: The following packages cannot be authenticated!

WARNING: The following packages cannot be authenticated!

WARNING: The following packages cannot be authenticated!
  python3-pip
E: There were unauthenticated packages and -y was used without --allow-unauthenticated

1. sudo apt install python3-pip -y

guipc@ubuntu:~/people_counting_api$ sudo apt install python3-pip -y
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  python3-setuptools python3-wheel
Suggested packages:
  python-setuptools-doc
The following NEW packages will be installed:
  python3-pip python3-setuptools python3-wheel
0 upgraded, 3 newly installed, 0 to remove and 440 not upgraded.
Need to get 245 kB of archives.
After this operation, 1,220 kB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
  python3-pip
E: There were unauthenticated packages and -y was used without --allow-unauthenticated
guipc@ubuntu:~/people_counting_api$ 

2. /var/lib/apt/lists

/var/lib/apt/lists/*_Release.gpg files 崩溃,删除文件,then run apt-get update。

sudo rm -frv /var/lib/apt/lists
sudo mkdir -pv /var/lib/lists/partial
sudo apt-get update
sudo apt-key update
guipc@ubuntu:~/people_counting_api$ sudo rm -frv /var/lib/apt/lists

guipc@ubuntu:~/people_counting_api$ sudo mkdir -pv /var/lib/lists/partial

guipc@ubuntu:~/people_counting_api$ sudo apt-get update

guipc@ubuntu:~/people_counting_api$ sudo apt-key update
gpg: key 437D05B5: "Ubuntu Archive Automatic Signing Key <ftpmaster@ubuntu.com>" not changed
gpg: key FBB75451: "Ubuntu CD Image Automatic Signing Key <cdimage@ubuntu.com>" not changed
gpg: key C0B21F32: "Ubuntu Archive Automatic Signing Key (2012) <ftpmaster@ubuntu.com>" not changed
gpg: key EFE21092: "Ubuntu CD Image Automatic Signing Key (2012) <cdimage@ubuntu.com>" not changed
gpg: Total number processed: 4
gpg:              unchanged: 4
guipc@ubuntu:~/people_counting_api$ 

References

[1] Yongqiang Cheng, https://yongqiang.blog.csdn.net/

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Yongqiang Cheng

梦想不是浮躁,而是沉淀和积累。

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值