System Errors - Package Manager
mvd@MVD-CQ4010F:~$ ubuntu-
Traceback (most recent call last):
File "/usr/bin/
with apt.Cache() as cache:
File "/usr/lib/
self.
File "/usr/lib/
self._cache = apt_pkg.
SystemError: E:Malformed line 47 in source list /etc/apt/
mvd@MVD-CQ4010F:~$ cat /etc/dpkg/
cat: /etc/dpkg/
mvd@MVD-CQ4010F:~$ dpkg --print-
i386
mvd@MVD-CQ4010F:~$ sudo grep -R proxy /etc/apt/*
[sudo] password for mvd:
mvd@MVD-CQ4010F:~$ grep proxy /etc/environment
mvd@MVD-CQ4010F:~$ echo $http_proxy
mvd@MVD-CQ4010F:~$ grep proxy /etc/bash.bashrc
mvd@MVD-CQ4010F:~$ grep proxy ~/.bashrc
mvd@MVD-CQ4010F:~$ cat /etc/apt/apt.conf
cat: /etc/apt/apt.conf: No such file or directory
mvd@MVD-CQ4010F:~$ sudo fuser -vvv /var/lib/dpkg/lock
mvd@MVD-CQ4010F:~$ sudo fuser -vvv /var/cache/
mvd@MVD-CQ4010F:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_
DISTRIB_
DISTRIB_
mvd@MVD-CQ4010F:~$ uname -a
Linux MVD-CQ4010F 3.19.0-30-generic #33-Ubuntu SMP Mon Sep 21 20:58:04 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
mvd@MVD-CQ4010F:~$ sudo rm /var/lib/
mvd@MVD-CQ4010F:~$ sudo rm /var/cache/
mvd@MVD-CQ4010F:~$ sudo rm /var/lib/dpkg/lock
mvd@MVD-CQ4010F:~$ sudo cp -arf /var/lib/dpkg /var/lib/
mvd@MVD-CQ4010F:~$ sudo mv /var/lib/
mvd@MVD-CQ4010F:~$ sudo cp /var/lib/
mvd@MVD-CQ4010F:~$ sudo mv /var/lib/
mvd@MVD-CQ4010F:~$ sudo cp /var/lib/
mvd@MVD-CQ4010F:~$ sudo rm -rf /var/lib/
mvd@MVD-CQ4010F:~$ sudo rm -rf /var/lib/apt/lists
mvd@MVD-CQ4010F:~$ sudo rm /var/cache/
mvd@MVD-CQ4010F:~$ sudo mkdir /var/lib/apt/lists
mvd@MVD-CQ4010F:~$ sudo mkdir /var/lib/
mvd@MVD-CQ4010F:~$ LANG=C;sudo apt-get clean
mvd@MVD-CQ4010F:~$ LANG=C;sudo apt-get autoclean
Reading package lists... Error!
E: Malformed line 47 in source list /etc/apt/
E: The list of sources could not be read.
E: The package lists or status file could not be parsed or opened.
mvd@MVD-CQ4010F:~$ sudo dpkg --configure -a
mvd@MVD-CQ4010F:~$ sudo dpkg --clear-avail
mvd@MVD-CQ4010F:~$ LANG=C;sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
mvd@MVD-CQ4010F:~$ LANG=C;sudo apt-get --fix-missing install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
mvd@MVD-CQ4010F:~$ LANG=C;sudo apt-get --purge autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
mvd@MVD-CQ4010F:~$ LANG=C;sudo apt-get --fix-missing update -o APT::Cache-
E: Malformed line 47 in source list /etc/apt/
E: The list of sources could not be read.
mvd@MVD-CQ4010F:~$ LANG=C;sudo apt-get update -o APT::Cache-
E: Malformed line 47 in source list /etc/apt/
E: The list of sources could not be read.
mvd@MVD-CQ4010F:~$ find /etc/apt -name '*.list' -exec bash -c 'echo -e "\n$1\n"; cat -n "$1"' _ '{}' \;
/etc/apt/
1 # deb https:/
/etc/apt/
1 # deb http://
2 # deb-src http://
/etc/apt/
1 # deb [arch=i386,amd64] http://
/etc/apt/
1 # deb https:/
/etc/apt/
1 ### THIS FILE IS AUTOMATICALLY CONFIGURED ###
2 # You may comment out this entry, but any other modifications may be lost.
3 # deb http://
/etc/apt/
1 # deb https:/
/etc/apt/
1 deb cdrom:[Ubuntu 14.04.1 LTS _Trusty Tahr_ - Release amd64 (20140722.2)]/ trusty main restricted
2
3 # See http://
4 # newer versions of the distribution.
5 deb http://
6 deb-src http://
7
8 ## Major bug fix updates produced after the final release of the
9 ## distribution.
10 deb http://
11 deb-src http://
12
13 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
14 ## team. Also, please note that software in universe WILL NOT receive any
15 ## review or updates from the Ubuntu security team.
16 deb http://
17 deb http://
18
19 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
20 ## team, and may not be under a free licence. Please satisfy yourself as to
21 ## your rights to use the software. Also, please note that software in
22 ## multiverse WILL NOT receive any review or updates from the Ubuntu
23 ## security team.
24 deb http://
25 deb http://
26
27 ## N.B. software from this repository may not have been tested as
28 ## extensively as that contained in the main release, although it includes
29 ## newer versions of some applications which may provide useful features.
30 ## Also, please note that software in backports WILL NOT receive any review
31 ## or updates from the Ubuntu security team.
32 deb http://
33 deb-src http://
34
35 deb http://
36 deb-src http://
37 deb http://
38 deb http://
39
40 ## Uncomment the following two lines to add software from Canonical's
41 ## 'partner' repository.
42 ## This software is not part of Ubuntu, but is offered by Canonical and the
43 ## respective vendors as a service to Ubuntu users.
44 deb http://
45 deb-src http://
46
47 deb http://
48 deb-src http://
49 deb http://
mvd@MVD-CQ4010F:~$ ^C
mvd@MVD-CQ4010F:~$
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Ubuntu apt 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 KD for more information if necessary.