xgqfrms™, xgqfrms® : xgqfrms's offical website of cnblogs! xgqfrms™, xgqfrms® : xgqfrms's offical website of GitHub!

fix Linux apt-get install package HTTPS error All In One

fix Linux apt-get install package HTTPS error All In One

errors

E: The method driver /usr/libapt/methods/https could not be found.
N: Is the package apt-transport-https installed?

solutions

  1. symbol link soft link/ 软链接
$ cd /usr/lib/apt/methods

# symbol link ✅ 符号连接
$ sudo ln -s http https

  1. install apt-transport-https
$ apt-get install apt-transport-https

demos

$ cd /usr/lib/apt/methods

$ sudo ln -s http https

pi@raspberrypi:~ $ cd /usr/lib/apt/methods

pi@raspberrypi:/usr/lib/apt/methods $ ls -al
total 452
drwxr-xr-x 2 root root   4096 Apr  5  2016 .
drwxr-xr-x 4 root root   4096 Apr  5  2016 ..
lrwxrwxrwx 1 root root      4 Apr  2  2016 bzip2 -> gzip
-rwxr-xr-x 1 root root  34252 Apr  2  2016 cdrom
-rwxr-xr-x 1 root root  17868 Apr  2  2016 copy
-rwxr-xr-x 1 root root  17868 Apr  2  2016 file
-rwxr-xr-x 1 root root  58860 Apr  2  2016 ftp
-rwxr-xr-x 1 root root  30156 Apr  2  2016 gpgv
-rwxr-xr-x 1 root root  21964 Apr  2  2016 gzip
-rwxr-xr-x 1 root root  79312 Apr  2  2016 http
lrwxrwxrwx 1 root root      4 Apr  2  2016 lzma -> gzip
-rwxr-xr-x 1 root root 103888 Apr  2  2016 mirror
-rwxr-xr-x 1 root root  34252 Apr  2  2016 rred
-rwxr-xr-x 1 root root  30164 Apr  2  2016 rsh
lrwxrwxrwx 1 root root      3 Apr  2  2016 ssh -> rsh
lrwxrwxrwx 1 root root      4 Apr  2  2016 xz -> gzip


pi@raspberrypi:/usr/lib/apt/methods $ ln -s http https
ln: failed to create symbolic link ‘https’: Permission denied

pi@raspberrypi:/usr/lib/apt/methods $ sudo ln -s http https

pi@raspberrypi:/usr/lib/apt/methods $ ls -al
total 452
drwxr-xr-x 2 root root   4096 Apr 19 07:08 .
drwxr-xr-x 4 root root   4096 Apr  5  2016 ..
lrwxrwxrwx 1 root root      4 Apr  2  2016 bzip2 -> gzip
-rwxr-xr-x 1 root root  34252 Apr  2  2016 cdrom
-rwxr-xr-x 1 root root  17868 Apr  2  2016 copy
-rwxr-xr-x 1 root root  17868 Apr  2  2016 file
-rwxr-xr-x 1 root root  58860 Apr  2  2016 ftp
-rwxr-xr-x 1 root root  30156 Apr  2  2016 gpgv
-rwxr-xr-x 1 root root  21964 Apr  2  2016 gzip
-rwxr-xr-x 1 root root  79312 Apr  2  2016 http
lrwxrwxrwx 1 root root      4 Apr 19 07:08 https -> http
lrwxrwxrwx 1 root root      4 Apr  2  2016 lzma -> gzip
-rwxr-xr-x 1 root root 103888 Apr  2  2016 mirror
-rwxr-xr-x 1 root root  34252 Apr  2  2016 rred
-rwxr-xr-x 1 root root  30164 Apr  2  2016 rsh
lrwxrwxrwx 1 root root      3 Apr  2  2016 ssh -> rsh
lrwxrwxrwx 1 root root      4 Apr  2  2016 xz -> gzip
pi@raspberrypi:/usr/lib/apt/methods $ 

(🐞 反爬虫测试!打击盗版⚠️)如果你看到这个信息, 说明这是一篇剽窃的文章,请访问 https://www.cnblogs.com/xgqfrms/ 查看原创文章!

refs

https://www.cnblogs.com/xgqfrms/p/17301579.html

https://unix.stackexchange.com/questions/338915/how-to-fix-apt-get-install-f-apt-transport-https-error-404-not-found



©xgqfrms 2012-2021

www.cnblogs.com/xgqfrms 发布文章使用:只允许注册用户才可以访问!

原创文章,版权所有©️xgqfrms, 禁止转载 🈲️,侵权必究⚠️!


posted @ 2023-04-19 22:15  xgqfrms  阅读(82)  评论(0编辑  收藏  举报