apt_pkg: E:The package lists or status file could not be parsed or opened.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apt (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
$ apt-cache policy python3-apt
python3-apt:
Installed: 0.8.3ubuntu7
Candidate: 0.8.3ubuntu7
Version table:
*** 0.8.3ubuntu7 0
500 http://
100 /var/lib/
$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_
DISTRIB_
DISTRIB_
I get an error trying to grab a Cache object from a vanilla chroot.
This is probably related to a similar bug in python-apt:
https:/
Logged commands/errors:
$ sudo debootstrap precise /home/bgray/
$ python3
>>> import apt_pkg
>>> apt_pkg.
>>> apt_pkg.
>>> apt_pkg.
>>> apt_pkg.
>>> import pdb; pdb.set_trace()
--Return--
> <stdin>
(Pdb) cache = apt_pkg.Cache(None)
*** SystemError: W:Unable to read /home/bgray/
(Pdb) c
>>> quit()
/home/bgray/
Due to both python-apt and python3-apt exhibiting the same issue, I'd anticipate it's an incompatibility with apt.
I've just about reached the end of my troubleshooting abilities though, but if there's anything else you want me to try, please ask.
affects: | python-apt (Ubuntu) → apt (Ubuntu) |