Apt

帶有新添加的 repo 的“apt-get update”正在工作,但嘗試安裝時找不到包

  • November 7, 2018

我正在嘗試在執行 Debian Jessie 的虛擬機上安裝 GitLab。

我通過執行添加了 GitLab 儲存庫: curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.deb.sh | sudo bash

到目前為止一切正常。甚至apt-get update工作正常。現在有這個新回購的條目/var/lib/apt/lists。但是執行時找不到包apt-get install gitlab-ee。甚至apt-cache search gitlab什麼都找不到。

/etc/apt/sources.list得到了以下內容:

#deb cdrom:[Debian GNU/Linux 8.3.0 _Jessie_ - Official i386 NETINST Binary-1 20160123-18:00]/ jessie main
deb http://ftp.de.debian.org/debian/ jessie main
deb-src http://ftp.de.debian.org/debian/ jessie main
deb http://security.debian.org/ jessie/updates main
deb-src http://security.debian.org/ jessie/updates main

# jessie-updates, previously known as 'volatile'
deb http://ftp.de.debian.org/debian/ jessie-updates main
deb-src http://ftp.de.debian.org/debian/ jessie-updates main

新的 repo 列在/etc/apt/sources.list.d/gitlab_gitlab-ee.list

# this file was generated by packages.gitlab.com for
# the repository at https://packages.gitlab.com/gitlab/gitlab-ee

deb https://packages.gitlab.com/gitlab/gitlab-ee/debian/ jessie main
deb-src https://packages.gitlab.com/gitlab/gitlab-ee/debian/ jessie main

有任何想法嗎?


apt-get update輸出(對不起 - 它是德語:Holen = Get)

root@host:~# apt-get update
OK   https://deb.nodesource.com jessie InRelease
OK   http://security.debian.org jessie/updates InRelease
OK   https://deb.nodesource.com jessie/main Sources
OK   https://deb.nodesource.com jessie/main i386 Packages
Holen: 1 https://deb.nodesource.com jessie/main Translation-de_DE [162 B]
Holen: 2 https://deb.nodesource.com jessie/main Translation-de [162 B]
OK   https://packages.gitlab.com jessie InRelease
Holen: 3 https://deb.nodesource.com jessie/main Translation-en [162 B]
Holen: 4 https://deb.nodesource.com jessie/main Translation-de_DE [162 B]
OK   https://packages.gitlab.com jessie/main Sources
Holen: 5 https://deb.nodesource.com jessie/main Translation-de [162 B]
OK   https://packages.gitlab.com jessie/main i386 Packages
Holen: 6 https://deb.nodesource.com jessie/main Translation-en [162 B]
Holen: 7 https://packages.gitlab.com jessie/main Translation-de_DE [162 B]
Holen: 8 https://deb.nodesource.com jessie/main Translation-de_DE [162 B]
Holen: 9 https://packages.gitlab.com jessie/main Translation-de [162 B]
Holen: 10 https://deb.nodesource.com jessie/main Translation-de [162 B]
Holen: 11 https://packages.gitlab.com jessie/main Translation-en [162 B]
Holen: 12 https://deb.nodesource.com jessie/main Translation-en [162 B]
Holen: 13 https://packages.gitlab.com jessie/main Translation-de_DE [162 B]
Holen: 14 https://deb.nodesource.com jessie/main Translation-de_DE [162 B]
Holen: 15 https://packages.gitlab.com jessie/main Translation-de [162 B]
Holen: 16 https://deb.nodesource.com jessie/main Translation-de [162 B]
Holen: 17 https://packages.gitlab.com jessie/main Translation-en [162 B]
Holen: 18 https://deb.nodesource.com jessie/main Translation-en [162 B]
Holen: 19 https://packages.gitlab.com jessie/main Translation-de_DE [162 B]
Holen: 20 https://deb.nodesource.com jessie/main Translation-de_DE [162 B]
Ign https://deb.nodesource.com jessie/main Translation-de_DE
Holen: 21 https://packages.gitlab.com jessie/main Translation-de [162 B]
Holen: 22 https://packages.gitlab.com jessie/main Translation-en [162 B]
Holen: 23 https://deb.nodesource.com jessie/main Translation-de [162 B]
Ign https://deb.nodesource.com jessie/main Translation-de
Holen: 24 https://packages.gitlab.com jessie/main Translation-de_DE [162 B]
Holen: 25 https://deb.nodesource.com jessie/main Translation-en [162 B]
Ign https://deb.nodesource.com jessie/main Translation-en
Holen: 26 https://packages.gitlab.com jessie/main Translation-de [162 B]
Holen: 27 https://packages.gitlab.com jessie/main Translation-en [162 B]
Holen: 28 https://packages.gitlab.com jessie/main Translation-de_DE [162 B]
Ign https://packages.gitlab.com jessie/main Translation-de_DE
Holen: 29 https://packages.gitlab.com jessie/main Translation-de [162 B]
Ign https://packages.gitlab.com jessie/main Translation-de
Holen: 30 https://packages.gitlab.com jessie/main Translation-en [162 B]
Ign https://packages.gitlab.com jessie/main Translation-en
Ign http://ftp.de.debian.org jessie InRelease
OK   http://ftp.de.debian.org jessie-updates InRelease
OK   http://ftp.de.debian.org jessie Release.gpg
OK   http://ftp.de.debian.org jessie Release
OK   http://ftp.de.debian.org jessie-updates/main Sources
Holen: 31 http://ftp.de.debian.org jessie-updates/main i386 Packages/DiffIndex [11,8 kB]
Holen: 32 http://ftp.de.debian.org jessie-updates/main Translation-en/DiffIndex [3.688 B]
OK   http://ftp.de.debian.org jessie/main Sources
OK   http://ftp.de.debian.org jessie/main i386 Packages
OK   http://ftp.de.debian.org jessie/main Translation-de_DE
OK   http://ftp.de.debian.org jessie/main Translation-de
OK   http://ftp.de.debian.org jessie/main Translation-en
OK   http://security.debian.org jessie/updates/main Sources
OK   http://security.debian.org jessie/updates/main i386 Packages
OK   http://security.debian.org jessie/updates/main Translation-en
Es wurden 15,5 kB in 10 s geholt (1.505 B/s).
Paketlisten werden gelesen... Fertig

#deb cdrom:[Debian GNU/Linux 8.3.0 _Jessie_ - Official i386 NETINST Binary-1 20160123-18:00]/ jessie main

我認為這是因為您正在執行 debian 32 位,沒有適用於 Debian 的 32 位軟體包https://packages.gitlab.com/gitlab/gitlab-ee

您可能需要從原始碼安裝並將其編譯為 32 位或將系統升級到 64 位。

引用自:https://serverfault.com/questions/938836