Heroku toolbelt无法安装407(Ubuntu/Precise)
我按照说明运行:Heroku toolbelt无法安装407(Ubuntu/Precise),ubuntu,heroku,ubuntu-12.04,Ubuntu,Heroku,Ubuntu 12.04,我按照说明运行: wget -qO- https://toolbelt.heroku.com/install-ubuntu.sh | sh 我得到: ... Hit http://archive.ubuntu.com precise-backports/restricted Translation-en Hit http://archive.ubuntu.com precise-backport
wget -qO- https://toolbelt.heroku.com/install-ubuntu.sh | sh
我得到:
...
Hit http://archive.ubuntu.com precise-backports/restricted Translation-en
Hit http://archive.ubuntu.com precise-backports/universe Translation-en
Err http://toolbelt.heroku.com ./ Packages
407 Proxy Authentication Required
Ign http://apt-corp.mirror.corp.google.com goobuntu-backports-precise-stable/main Translation-en_US
...
Ign http://apt-corp.mirror.corp.google.com ubiquity-precise-stable/main Translation-en
Ign http://apt-corp.mirror.corp.google.com vmware-precise-stable/main Translation-en_US
Ign http://apt-corp.mirror.corp.google.com vmware-precise-stable/main Translation-en
Fetched 2,313 kB in 18s (123 kB/s)
W: Failed to fetch http://toolbelt.heroku.com/ubuntu/./Packages 407 Proxy Authentication Required
知道如何解决这个问题吗?这通常意味着什么
通常,在尝试安装带有APT的软件包时,需要407代理身份验证
错误意味着:
Acquire::http::Proxy "http://user:pass@proxy:port/";
也会转到HTTPS 404页面,但带有尾随斜杠,则不会。当以/
结尾时,它会重定向到(无论是否有尾随/
,它都能正常工作,尽管可能并不相关)
也许Ubuntu或你的代理很难弄清楚什么是HTTP和HTTPS,用于代理目的。这只是一个猜测…但我认为值得一看
可能的解决办法
编辑/etc/apt/sources.list.d/heroku.list
,并将其内容更改为:
deb http://toolbelt.heroku.com/ubuntu/ ./
(也就是说,在URL后面添加一个斜杠。)
然后运行sudo apt get update
,查看错误是否消失。如果有,请尝试安装Heroku
- 你下载的脚本会自动安装它,但它并没有达到这一点。所以手动运行:
sudo apt get install heroku
deb http://heroku-toolbelt.s3.amazonaws.com/apt ./
原因是,即使中存在包
文件(列出存储库提供的包)http://heroku-toolbelt.s3.amazonaws.com/apt
,可通过下载
wget http://heroku-toolbelt.s3.amazonaws.com/apt/./Packages
…然而,apt get update
无法下载文件:
W: Failed to fetch http://heroku-toolbelt.s3.amazonaws.com/apt/./Packages 404 Not Found
aptitude
也有同样的问题,这表明它不是一个apt-get
bug。此外,/
语法适用于包
之外的其他文件,这些包由apt get update
和aptitude update
检索
因此,除非这是足够的信息,你(或某人)可以找出什么我不能,它不太可能改变它的亚马逊域名将工作
手动下载并安装.deb
软件包
如果代理设置正确,并且代理本身没有问题,并且在URL中添加尾部斜杠不起作用,那么我能想到的唯一解决方案就是手动下载并安装.deb
包
首先,禁用导致错误的Heroku存储库:
cd /etc/apt/sources.list.d && sudo mv heroku.list heroku.list.save
软件包
文件(如果您根本无法下载)上说:
因此,创建一个空目录,抓取deb并安装它们及其依赖项:
mkdir~/heroku-debs
cd~/heroku-debs
wgethttp://toolbelt.heroku.com/ubuntu/foreman-0.60.0.deb
wgethttp://toolbelt.heroku.com/ubuntu/heroku-toolbelt-2.34.0.deb
wgethttp://toolbelt.heroku.com/ubuntu/heroku-2.34.0.deb
#您现在可能需要验证哈希值。理想情况下,下载包文件
#你自己,而不是假设我在这里引用的真实性。
sudo dpkg-i*.deb
sudo-apt-get-update&&sudo-apt-get-f安装
请记住,当您的其他软件运行时,它们不会自动更新。但是,假设您能够下载软件包
文件,您可以使用该文件不时检查更新
我希望我之前提出的一个解决方案对您有效。如果不是,这应该是,并且希望不久能找到一个不那么丑陋的解决方案
cd /etc/apt/sources.list.d && sudo mv heroku.list heroku.list.save
Package: foreman
Priority: standard
Section: main
Maintainer: Heroku
Architecture: all
Version: 0.60.0
Depends: ruby1.9.1
Filename: ./foreman-0.60.0.deb
Size: 89486
MD5sum: 83c614451545d98a09d0bb55e939cc03
SHA1: afd5d9d6ede750cb42bce1ab938dd9ac7bebe100
SHA256: a41532cb9ed60226ca9b4388842215c5ba94f8f5c32d832519858f66d5b19ebe
SHA512: c9327af190b12cb4d7f33cf2480c15c1249b400c4605ea5405ba3e3ddd433789a94471946ef4be452ed1669f1b63bf7150dba03c0e76a0d6f9c9ff981890490a
Description: Manage Procfile-based applications.
Foreman is a manager for Procfile-based applications. Its aim is to
abstract away the details of the Procfile format, and allow you to
either run your application directly or export it to some other
process management format.
Package: heroku-toolbelt
Priority: standard
Section: main
Installed-Size:
Maintainer: Heroku
Architecture: all
Version: 2.34.0
Depends: git-core, foreman, heroku (= 2.34.0)
Filename: ./heroku-toolbelt-2.34.0.deb
Size: 628
MD5sum: e81597804c537e93f85b89720ae2ebfd
SHA1: ebbb60c1479364f112ea386b5f6199de54dfcf5f
SHA256: c204b87691a5fdd8e0b750512e557ac5c494d4d561ecafb1e6d2c04b078b4bf8
SHA512: 8622e839f4748878a3c3083b09d1a84a16fb0c8c6cd3ac0885e5960810e8116c785e63027ccf87bfd1618be53736dabbcfc47c9c83e072776e9099c5443a64f9
Description: A metapackage for working with the Heroku platform.
Package: heroku
Priority: standard
Section: main
Maintainer: Heroku
Architecture: all
Version: 2.34.0
Depends: ruby1.9.1, libopenssl-ruby1.9.1, libreadline-ruby1.9.1, libssl0.9.8 (>= 0.9.8k) | libssl1.0.0
Filename: ./heroku-2.34.0.deb
Size: 639186
MD5sum: 474461b8217d45a954fc0eeab007b53d
SHA1: 50f2ca475d78d480a47dcc56353707c69209dbb9
SHA256: 7caf91c66e6c439b210b338a06313218b8a38ce5458467771f51df770832c476
SHA512: d009fb299232dc65ce586fe185670d96c1cf30bf15e7dada1f11000e7753951dc77b872caca0897e856a88fe3142f2da9f63b90adaeca213bacdb73455c8c1f1
Description: Client library and CLI to deploy apps on Heroku.