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

发布时间 2023-04-19 22:16:33作者: xgqfrms

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 / hard 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

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

(? 反爬虫测试!打击盗版⚠️)如果你看到这个信息, 说明这是一篇剽窃的文章,请访问 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, 禁止转载 ?️,侵权必究⚠️!