Eu não sei porque de repente eu não posso fazer algo com o apt-get como sudo apt-get update
ou sudo apt-get install blabla
esta é a saída para uname -a
:
Linux adelleodel-X450CC 3.16.0-30-generic #40~14.04.1-Ubuntu SMP Thu Jan 15 17:43:14 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
arquivo apt-get:
apt-get: ERROR: cannot open 'apt-get' (No such file or directory)
cat / etc / lsb-release:
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.3 LTS"
ls -l / usr / bin / apt-get:
ls: cannot access /usr/bin/apt-get: No such file or directory
dpkg -l apt:
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-=============================-===================-===================-================================================================
rc apt 1.0.1ubuntu2.11 amd64 commandline package manager
echo $ PATH:
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
Eu procurei antes sobre isso e algumas pessoas disseram que eu tenho que baixar algo e dpkg-lo. como fazer então? alguém pode dar o link e passo a passo como fazer isso?
Muito obrigado !!!!
----- editada -----
na verdade, eu fiz sudo apt-get remove libusb-0.1-4:amd64
e algum pacote autoremove com isso eu acho ..
Eu fiz isso porque eu pensei que não era do meu programa, porque eu tenho libusb-1.0-0: amd64 , libusb-1.0-0-dev: amd64 e libusb-1.0-doc
Eu tentei wget http://security.ubuntu.com/ubuntu/pool/main/a/apt/apt_1.0.1ubuntu2.11_amd64.deb
o resultado é:
--2016-02-08 19:56:19-- http://security.ubuntu.com/ubuntu/pool/main/a/apt/apt_1.0.1ubuntu2.11_amd64.deb
Resolving security.ubuntu.com (security.ubuntu.com)... 91.189.91.13, 91.189.92.200, 91.189.92.201, ...
Connecting to security.ubuntu.com (security.ubuntu.com)|91.189.91.13|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 952468 (930K) [application/x-debian-package]
Saving to: ‘apt_1.0.1ubuntu2.11_amd64.deb’
100%[======================================>] 952.468 245KB/s in 3,8s
2016-02-08 19:56:29 (245 KB/s) - ‘apt_1.0.1ubuntu2.11_amd64.deb’ saved [952468/952468]
depois disso, sudo dpkg -i apt_apt_1.0.1ubuntu2.11_amd64.deb
o resultado é:
dpkg: error processing archive apt_apt_1.0.1ubuntu2.11_amd64.deb (--install):
cannot access archive: No such file or directory
Errors were encountered while processing:
apt_apt_1.0.1ubuntu2.11_amd64.deb
adelleodel@adelleodel-X450CC:~$ sudo dpkg -i apt_1.0.1ubuntu2.11_amd64.deb
(Reading database ... 230272 files and directories currently installed.)
Preparing to unpack apt_1.0.1ubuntu2.11_amd64.deb ...
Unpacking apt (1.0.1ubuntu2.11) over (0.8.10.3+squeeze1) ...
dpkg: dependency problems prevent configuration of apt:
apt depends on libstdc++6 (>= 4.6); however:
Version of libstdc++6 on system is 4.4.5-8.
apt depends on gnupg; however:
Package gnupg is not installed.
dpkg: error processing package apt (--install):
dependency problems - leaving unconfigured
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Errors were encountered while processing:
apt