2

在我删除了 libusb-0.1-4 数据包后,当我意识到我也删除了 apt-get 时,我尝试安装一个新的。

tbarry@darkstar:~$ sudo apt-get install libusb-1.0-0 sudo: apt-get: command not found tbarry@darkstar:~$ sudo aptitude install libusb-1.0-0 sudo: aptitude: command not found

有人可以知道如何在没有apt的情况下重新安装apt吗?

4

2 回答 2

3

apt...version.debhttps://packages.debian.org/search?keywords=apt下载,然后通过sudo dpkg -i /path/to/apt..version.deb. 只要不删除 dpkg,一切都可以恢复。然后aptitude通过apt-get.

于 2014-04-14T13:21:59.553 回答
2

您可以使用(或任何其他 HTTP 或 FTP 客户端)以形式下载apt(或aptitude)包,然后使用它来安装该包。.debwgetdpkg -iapt*.deb

如果dpkg抱怨缺少依赖项,请同样安装该依赖项。

于 2014-04-14T13:21:04.237 回答