为 Shellshock 更新 Vyatta 6.6 盒

为 Shellshock 更新 Vyatta 6.6 盒

客户安装了几个 Vyatta,最终想要替换为维欧。在此期间,他们正在运行 Vyatta 6.6(出售给 Brocade 之前的最新版本)。这是一个没有任何外部接口的内部路由器,但仍然希望修补其 bash 版本。

更新系统会sudo apt-get update导致这些错误。据推测 Brocade 已使这些旧存储库现在不可用:

W: Failed to fetch http://packages.vyatta.com/vyatta/dists/stable/Release.gpg Could not connect to packages.vyatta.com:80 (144.49.164.21). – connect (110: Connection timed out)

W: Failed to fetch http://packages.vyatta.com/vyatta/dists/stable/main/i18n/Translation-en.gz  Unable to connect to packages.vyatta.com:http:

W: Failed to fetch http://packages.vyatta.com/vyatta/dists/stable/main/binary-i386/Packages.gz Unable to connect to packages.vyatta.com:http:

该文档列出了安装 Debian Squeeze 存储库的以下步骤:

$ configure
$ set system package repository squeeze components 'main contrib non-free'
$ set system package repository squeeze distribution 'squeeze'
$ set system package repository squeeze url 'http://mirrors.kernel.org/debian'
$ commit
$ save
$ exit

但当我尝试更新时sudo apt-get upgrade bash,它说

bash is already the newest version

我尝试过squeeze-backportssqueeze-ltr结果是一样的。

有谁知道在这些 Brocade Vyatta 之前的盒子中更新 bash 的替代方法吗?

答案1

我发现这个并且有效:http://qiita.com/Yaggytter/items/f603511ab0c67d415b21

命令:

sudo dpkg-divert --remove /bin/sh
sudo dpkg-divert --remove /usr/share/man/man1/sh.1.gz
sudo dpkg-divert --package dash --divert /bin/sh.distrib --add /bin/sh
sudo dpkg-divert --package dash --divert /usr/share/man/man1/sh.distrib.1.gz  --add /usr/share/man/man1/sh.1.gz

configure
set system package repository squeeze components 'main'
set system package repository squeeze distribution 'squeeze'
set system package repository squeeze url 'http://ftp.jp.debian.org/debian/'
set system package repository squeezeupdates components 'main'
set system package repository squeezeupdates distribution 'squeeze/updates'
set system package repository squeezeupdates url 'http://security.debian.org/'
set system package repository squeeze-updates components 'main'
set system package repository squeeze-updates distribution 'squeeze-updates'
set system package repository squeeze-updates url 'http://ftp.us.debian.org/debian/'
set system package repository squeeze-lts url http://ftp.jp.debian.org/debian/
set system package repository squeeze-lts distribution squeeze-lts
set system package repository squeeze-lts components 'main contrib non-free'
commit
save
exit
sudo aptitude update
sudo aptitude install bash

不过,我确信如果您在那里,ftp 可以更改为我们。

这将删除 vbash 并安装 debian squeeze 版本。

相关内容