문제

After I have removed libusb-0.1-4 packet, I tried to install a new one when I realized that I have also removed 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

could someone know how to reinstall apt without apt?

도움이 되었습니까?

해결책

Download the apt...version.deb from https://packages.debian.org/search?keywords=apt and then install it via sudo dpkg -i /path/to/apt..version.deb. As long a dpkg is not removed everything is recoverable. Then install aptitude via apt-get.

다른 팁

You could download the apt (or aptitude) package in .deb form with wget (or any other HTTP or FTP client), then use dpkg -i to install that apt*.deb package.

If dpkg complains about a missing dependency, install that dependency likewise.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top