Cubic crashes on the Prepare page while checking if Ubiquity is installed.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cubic |
Invalid
|
Undecided
|
Cubic PPA |
Bug Description
User reports the following error:
Running cubic 2021.11-62 on ubuntu 20.04 crashes after it exits from the chroot. Within the chroot envirionment (ubuntu 18.04 server iso) I'm running a script that installs packages, etc... and cubic crashes with:
Exception in thread Thread-9:
Traceback (most recent call last):
File "/usr/lib/
self.run()
File "/usr/lib/
self.
File "/usr/share/
result = new_page.
File "/usr/share/
validate_page()
File "/usr/share/
model.
File "/usr/share/
apt_cache = apt.Cache(
File "/usr/lib/
apt_
SystemError: <built-in function read_config_dir> returned NULL without setting an error
I added a line in /usr/share/
$ dpkg -s cubic | grep Depends
Depends: python3:any (>= 3.6~), binwalk (>= 2.1.1), coreutils (>= 8.28), genisoimage (>= 9:1.1.11), gir1.2-gtksource-4 (>= 4.2.0) | gir1.2-
This wasn't an issue on 2021.11-61 and this issue appears to be related to:
Fixed Bug LP:#1950865, The Packages page should only be shown if Ubiquity is
installed. Added logic to bypass the Packages page if Ubiquity is not
installed, and added logic to display the minimal install check boxes on the
Packages page if the version of Ubiquity is >= 18.04. Added python3-apt
(>=1.6.5) and python3-packaging (>=17.1) as required dependencies.
Changed in cubic: | |
assignee: | nobody → Cubic PPA (cubic-wizard) |
I'm able to reproduce the problem from a python shell and it appears that the custom- root/etc/ apt/apt. conf.d/ local file has 640 permissions so the cubic process (run as "me") can't access it.
In the script I run within the chroot I added a step to "chmod o+r /etc/apt/ apt.conf. d/local" and that resolves the issue for me.
I'm not sure why I didn't have this issue with 2021.11-61 since I was running the same script in the chroot shell.