首页 > 系统相关 >fix Linux apt-get install package HTTPS error All In One

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

时间:2023-04-19 22:24:46浏览次数:31  
标签:package Apr rwxr apt HTTPS error xr 2016 root

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 $ 

(

标签:package,Apr,rwxr,apt,HTTPS,error,xr,2016,root
From: https://www.cnblogs.com/xgqfrms/p/17334847.html

相关文章