当前位置:   article > 正文

WARNING: The following packages cannot be authenticated!_there were unauthenticated packages and -y was use

there were unauthenticated packages and -y was used without --allow-unauthen

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
  • 2
  • 3

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$ 
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17

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
  • 1
  • 2
  • 3
  • 4
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$ 
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14

References

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

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/article/detail/43906?site
推荐阅读
相关标签
  

闽ICP备14008679号