找不到方法驱动程序 /usr/lib/apt/methods/https

找不到方法驱动程序 /usr/lib/apt/methods/https

我有 CHIP,由于安装损坏,我不得不重新刷新它(Jessie,服务器(我也有 PocketCHIP 映像,但与我原来的 CHIP 配合得不好,所以我转到了服务器映像),稳定)。现在它是一个干净的安装,我想安装git

我继续说:

root@chip:~# sudo apt-get install git
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package git

我尝试更新:

root@chip:~# sudo apt-get update
E: The method driver /usr/lib/apt/methods/https could not be found.            
N: Is the package apt-transport-https installed?

出现此错误后,我尝试安装apt-transport-https

root@chip:~# sudo apt-get install apt-transport-https
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package apt-transport-https

我决定从以下位置下载 tarball 来手动构建它https://packages.debian.org/jessie/apt-transport-https

root@chip:~/tmp/apt-1.0.9.8.5# ./configure 
configure: error: cannot run /bin/sh buildlib/config.sub

现在我真的陷入了困境。这是一个干净的新映像,apt-get不允许通过 HTTPS 进行任何操作。我也无法安装 apt-transport-https。以下是我的来源:

root@chip:~/tmp/apt-1.0.9.8.5# more /etc/apt/sources.list
deb http://ftp.us.debian.org/debian/ jessie main contrib non-free
deb-src http://ftp.us.debian.org/debian/ jessie main contrib non-free

deb http://security.debian.org/ jessie/updates main contrib non-free
deb-src http://security.debian.org/ jessie/updates main contrib non-free

deb http://http.debian.net/debian jessie-backports main contrib non-free
deb-src http://http.debian.net/debian jessie-backports main contrib non-free

deb http://opensource.nextthing.co/chip/debian/repo jessie main

我究竟做错了什么?

答案1

我已经找到并手动安装了libcurl3-gnutls_7.38.0-4+deb8u14_armhf.deb libapt-pkg4.12_1.0.9.8.5_armhf.deb,并且apt-transport-https_1.0.9.8.5_armhf.deb可以让它工作。现在 HTTPS 可以工作了,但即使更新后仍然找不到任何存储库,但这似乎是另一个问题。

相关内容