
我有 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 可以工作,但即使更新後仍然找不到任何儲存庫,但這似乎是另一個問題。