can't update software, how to fix this?
rifqi@rifqi-
Traceback (most recent call last):
File "/usr/bin/
with apt.Cache() as cache:
File "/usr/lib/
self.
File "/usr/lib/
self._depcache = apt_pkg.
SystemError: E:The package apt needs to be reinstalled, but I can't find an archive for it.
rifqi@rifqi-
rifqi@rifqi-
cat: /etc/dpkg/
rifqi@rifqi-
rifqi@rifqi-
i386
rifqi@rifqi-
rifqi@rifqi-
[sudo] password for rifqi:
Sorry, try again.
[sudo] password for rifqi:
rifqi@rifqi-
Traceback (most recent call last):
File "/usr/bin/
with apt.Cache() as cache:
File "/usr/lib/
self.
File "/usr/lib/
self._depcache = apt_pkg.
SystemError: E:The package apt needs to be reinstalled, but I can't find an archive for it.
rifqi@rifqi-
rifqi@rifqi-
cat: /etc/dpkg/
rifqi@rifqi-
rifqi@rifqi-
i386
rifqi@rifqi-
rifqi@rifqi-
rifqi@rifqi-
rifqi@rifqi-
rifqi@rifqi-
rifqi@rifqi-
rifqi@rifqi-
rifqi@rifqi-
rifqi@rifqi-
rifqi@rifqi-
rifqi@rifqi-
rifqi@rifqi-
rifqi@rifqi-
rifqi@rifqi-
cat: /etc/apt/apt.conf: No such file or directory
rifqi@rifqi-
rifqi@rifqi-
rifqi@rifqi-
rifqi@rifqi-
rifqi@rifqi-
rifqi@rifqi-
DISTRIB_ID=Ubuntu
DISTRIB_
DISTRIB_
DISTRIB_
rifqi@rifqi-
rifqi@rifqi-
Linux rifqi-1215B 4.8.0-36-generic #36~16.04.1-Ubuntu SMP Sun Feb 5 09:39:57 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
rifqi@rifqi-
rifqi@rifqi-
rifqi@rifqi-
rifqi@rifqi-
rifqi@rifqi-
rifqi@rifqi-
rifqi@rifqi-
rifqi@rifqi-
rifqi@rifqi-
rifqi@rifqi-
rifqi@rifqi-
rifqi@rifqi-
rifqi@rifqi-
rifqi@rifqi-
rifqi@rifqi-
rifqi@rifqi-
rifqi@rifqi-
rifqi@rifqi-
rifqi@rifqi-
rifqi@rifqi-
rifqi@rifqi-
rifqi@rifqi-
rifqi@rifqi-
rifqi@rifqi-
rifqi@rifqi-
rifqi@rifqi-
rifqi@rifqi-
rifqi@rifqi-
rifqi@rifqi-
rifqi@rifqi-
Reading package lists... Done
Building dependency tree
Reading state information... Done
rifqi@rifqi-
rifqi@rifqi-
dpkg: error processing package apt (--configure):
package is in a very bad inconsistent state; you should
reinstall it before attempting configuration
Errors were encountered while processing:
apt
rifqi@rifqi-
rifqi@rifqi-
rifqi@rifqi-
rifqi@rifqi-
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: The package apt needs to be reinstalled, but I can't find an archive for it.
rifqi@rifqi-
rifqi@rifqi-
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: The package apt needs to be reinstalled, but I can't find an archive for it.
rifqi@rifqi-
rifqi@rifqi-
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: The package apt needs to be reinstalled, but I can't find an archive for it.
rifqi@rifqi-
rifqi@rifqi-
Reading package lists... Done
rifqi@rifqi-
rifqi@rifqi-
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: The package apt needs to be reinstalled, but I can't find an archive for it.
rifqi@rifqi-
rifqi@rifqi-
/etc/apt/
1 # deb cdrom:[Ubuntu 16.04.2 LTS _Xenial Xerus_ - Release amd64 (20170215.2)]/ xenial main restricted
2
3 # See http://
4 # newer versions of the distribution.
5 # deb-src http://
6
7 ## Major bug fix updates produced after the final release of the
8 ## distribution.
9 # deb-src http://
10
11 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
12 ## team. Also, please note that software in universe WILL NOT receive any
13 ## review or updates from the Ubuntu security team.
14 # deb-src http://
15 # deb-src http://
16
17 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
18 ## team, and may not be under a free licence. Please satisfy yourself as to
19 ## your rights to use the software. Also, please note that software in
20 ## multiverse WILL NOT receive any review or updates from the Ubuntu
21 ## security team.
22 # deb-src http://
23 # deb-src http://
24
25 ## N.B. software from this repository may not have been tested as
26 ## extensively as that contained in the main release, although it includes
27 ## newer versions of some applications which may provide useful features.
28 ## Also, please note that software in backports WILL NOT receive any review
29 ## or updates from the Ubuntu security team.
30 # deb-src http://
31
32 ## Uncomment the following two lines to add software from Canonical's
33 ## 'partner' repository.
34 ## This software is not part of Ubuntu, but is offered by Canonical and the
35 ## respective vendors as a service to Ubuntu users.
36 # deb http://
37 # deb-src http://
38
39 # deb-src http://
40 # deb-src http://
41 # deb-src http://
rifqi@rifqi-
rifqi@rifqi-
The following packages are in a mess due to serious problems during
installation. They must be reinstalled for them (and any packages
that depend on them) to function properly:
apt commandline package manager
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Ubuntu Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask moh. rifqi adam for more information if necessary.