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
- symbol link
soft link
/ 软链接
$ cd /usr/lib/apt/methods
# symbol link ✅ 符号连接
$ sudo ln -s http https
- install
apt-transport-https
$ apt-get install apt-transport-https
demos
$ cd /usr/lib/apt/methods
$ sudo ln -s http https
$ 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
©xgqfrms 2012-2021
www.cnblogs.com/xgqfrms 发布文章使用:只允许注册用户才可以访问!
原创文章,版权所有©️xgqfrms, 禁止转载 🈲️,侵权必究⚠️!
本文首发于博客园,作者:xgqfrms,原文链接:https://www.cnblogs.com/xgqfrms/p/17334847.html
未经授权禁止转载,违者必究!