Recently I executed this command:
sudo apt-get remove debian-keyring debian-archive-keyring
To prevent this such error message:
WARNING: The following packages cannot be authenticated!
openerp
My plan was executing these commands:
sudo apt-get remove debian-keyring debian-archive-keyring
sudo apt-get clean
sudo apt-get update
sudo apt-get -y install debian-keyring debian-archive-keyring
Accidentally I got this error message when trying to continue executing code:
[ps193731]$ sudo apt-get clean
sudo: apt-get: command not found
[ps193731]$ sudo apt-get -y install debian-keyring debian-archive-keyring
sudo: apt-get: command not found
As additional information I'm adding this information:
Result of sudo dpkg --configure -a
:
[ps193731]$ sudo dpkg --configure -a
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.
dpkg: error processing apt (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libapt-pkg4.12:
libapt-pkg4.12 depends on libstdc++6 (>= 4.6); however:
Version of libstdc++6 on system is 4.4.5-8.
dpkg: error processing libapt-pkg4.12 (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
apt
libapt-pkg4.12
Result of apt-cache policy libstdc++6 apt libapt-pkg4.12
:
[ps193731]$ apt-cache policy libstdc++6 apt libapt-pkg4.12
apt-cache: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by apt-cache)
apt-cache: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /usr/lib/x86_64-linux-gnu/libapt-pkg.so.4.12)
Result of dpkg -l libstdc++6 apt libapt-pkg4.12
:
[ps193731]$ dpkg -l libstdc++6 apt libapt-pkg4.12
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 Description
+++-==========================-==========================-====================================================================
iU apt 0.9.7.9+deb7u1 commandline package manager
iU libapt-pkg4.12 0.9.7.9+deb7u1 package managment runtime library
ii libstdc++6 4.4.5-8 The GNU Standard C++ Library v3
Result of sudo dpkg -C
:
[ps193731]$ sudo dpkg -C
The following packages have been unpacked but not yet configured.
They must be configured using dpkg --configure or the configure
menu option in dselect for them to work:
apt commandline package manager
libapt-pkg4.12 package managment runtime library
Content of /etc/apt/sources.list
:
# Generated by ndn-autoupdate
deb http://debian.di.newdream.net/ squeeze ndn
deb http://debian.newdream.net/ squeeze main contrib non-free
deb http://security.debian.org/ squeeze/updates main contrib non-free
deb http://debian.newdream.net/ squeeze-updates main contrib non-free
deb http://www.backports.org/debian/ squeeze-backports main contrib non-free
deb http://nightly.openerp.com/7.0/nightly/deb/ ./
I also have the problem installing libstdc++6 version 4.6 or above for debian squeeze.
Because there no libstdc++6 version 4.6 or above for debian squeeze.
How can I fix the apt
command to be useable again?
apt-get
command. Can you check and see what the status of theapt
package is?dpkg -l apt
. – Faheem Mitha Feb 8 at 8:42dpkg -l apt
as additional information. Can you check it again please? – Akmal Dirgantara Feb 8 at 12:21man dpkg-query
. The first field isi
meaning installed, The second is`U` meaning unpacked. It should also bei
. Trydpkg --configure -a
, and post the output in your question. It is possible that will fix the problem, depending on what other problems your system may have. – Faheem Mitha Feb 8 at 12:22