Optional argument to install without apt full-upgrade
I just tried to ubports-qa install focal_-_PR_waydroid_9
on my Fairphone 4 and encountered the following:
phablet@ubuntu-phablet:~$ sudo ubports-qa install focal_-_PR_waydroid_9
...
Unpacking lomiri-system-settings (1.0+0~20230207095648.106+ubports20.04~1.gbpd27f17) over (1.0~20230204185820.102~5483a75+ubports20.04) ...
dpkg: error processing archive /tmp/apt-dpkg-install-vtUs64/23-lomiri-system-settings_1.0+0~20230207095648.106+ubports20.04~1.gbpd27f17_arm64.deb (--unpack):
unable to create '/usr/share/session-migration/scripts/lomiri-system-settings-greeter-data-rename.sh.dpkg-new' (while processing './usr/share/session-migration/scripts/lomiri-system-settings-greeter-data-rename.sh'): Read-only file system
dpkg: error while cleaning up:
unable to remove newly-extracted version of '/usr/share/session-migration/scripts/lomiri-system-settings-greeter-data-rename.sh': Read-only file system
...
Errors were encountered while processing:
/tmp/apt-dpkg-install-vtUs64/23-lomiri-system-settings_1.0+0~20230207095648.106+ubports20.04~1.gbpd27f17_arm64.deb
W: No sandbox user '_apt' on the system, can not drop privileges
E: Sub-process /usr/bin/dpkg returned an error code (1)
ERROR:ubports-qa:Failed to run 'apt full-upgrade'. See the output above for details.
INFO:ubports-qa:You can remove this repository by running 'sudo ubports-qa remove focal_-_PR_waydroid_9'
findmnt -T /usr/share/session-migration/scripts/lomiri-system-settings-greeter-data-rename.sh
shows the file is overlayed due to some session migration mtime workaround stuff:
phablet@ubuntu-phablet:~$ sudo findmnt -T /usr/share/session-migration/scripts/lomiri-system-settings-greeter-data-rename.sh
TARGET SOURCE FSTYPE OPTIONS
/usr/share/session-migration/scripts workaround-session-migration-mtime overlay ro,relatime,lowerdir=/tmp/workaround-session-migration-mtime.tiFDmX:/usr/share/session-migration/scripts
After attempting to run the command I can't even update the waydroid
package alone and my rootfs was left in a broken state:
phablet@ubuntu-phablet:~$ sudo apt install -y waydroid
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
lomiri-system-settings : Depends: liblomirisystemsettings1 (= 1.0~20230204185820.102~5483a75+ubports20.04) but 1.0+0~20230207095648.106+ubports20.04~1.gbpd27f17 is to be installed
waydroid : Depends: waydroid-sensors but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
Thus I propose a e.g. --no-full-upgrade
or similar flag for ubports-qa install
, I'm sure @gberh also would be interested in this ;)
Edited by Jami Kettunen