如何在这个上安装 wget?

10 wget ubuntu-9.10

我确实为 VMWare (Ubuntu 9.10)下载了RubyStack 2.0.3,但我无法在上面下载任何东西!似乎所有基本实用程序都丢失/搞砸了:

bitnami@linux:/var/tmp$ wget
-bash: wget: command not found

bitnami@linux:/var/tmp$ curl
curl: error while loading shared libraries: libcurl.so.4: cannot open shared obj
ect file: No such file or directory

bitnami@linux:/var/tmp$ man wget
-bash: man: command not found

bitnami@linux:/var/tmp$ sudo apt-get install wget
[sudo] password for bitnami:
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Couldn’t find package wget
Run Code Online (Sandbox Code Playgroud)

任何想法如何在这台机器上下载任何东西?(我没有物理访问它)

更新

你一定是在逗我...

bitnami@linux:~$ ftp
-bash: ftp: command not found

bitnami@linux:~$ smbclient
-bash: smbclient: command not found
Run Code Online (Sandbox Code Playgroud)

小智 24

我用的是debian,不是ubuntu,但是方法应该是一样的

第一次尝试:

sudo bash
apt-get update
apt-get -f install
apt-get install wget
Run Code Online (Sandbox Code Playgroud)

除此之外,

cat /etc/apt/sources.list
Run Code Online (Sandbox Code Playgroud)

记下 deb 后的 url 前缀

apt-cache show wget
Run Code Online (Sandbox Code Playgroud)

寻找:

Filename: pool/main/w/wget/wget_1.12-1.1_i386.deb
Run Code Online (Sandbox Code Playgroud)

在本地浏览器中获取它,从 /etc/apt/sources.list 和 apt-cache show 中组合 url 部分和文件名部分。scp 文件到你的机器,

dpkg -i wget_whatever.deb
Run Code Online (Sandbox Code Playgroud)

如果 /etc/apt/sources.list 设置不正确,请尝试 tekhammer 的建议,然后重新运行 apt-get update。