What type of hardware are you using: VPS bought online What YunoHost version are you running: 12.0.7 What app is this about: Grist
Describe your issue
I tried to install Grist on my VPS which I just migrated to Yunohost 12 Bookworm. But there is a problem with a python dependency which needs to remove a generic package to install a python3 specific version. I don’t know if this is recommended in YNH12 as I think the system moved to python 4, what should I do ?
(Personally I would rather poke apt with apt install python3-venv python3.11-venv such that it spits out why it doesn’t want to install python3.11-venv)
2024-11-18 17:08:21,790: DEBUG - The following packages will be REMOVED:
2024-11-18 17:08:21,790: DEBUG - python-pip-whl
2024-11-18 17:08:21,791: DEBUG - The following NEW packages will be installed:
2024-11-18 17:08:21,792: DEBUG - python3-pip-whl python3-setuptools-whl python3-venv python3.11-venv yarn
2024-11-18 17:08:21,809: WARNING - E: Packages need to be removed but remove is disabled.
So the problem might be that the install needs to replace “python-pip-whl” by “python3-pip-whl” (why ?) but as it was asked to not remove any package, it fails. And thus the other packages (python-venv depends on python3-pip-whl) are not installed too.
So by forcing the replacement of python-pip-whl, everything went fine :
root@daz: apt install python3-venv python3.11-venv
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
python3-pip-whl python3-setuptools-whl
The following packages will be REMOVED:
python-pip-whl
The following NEW packages will be installed:
python3-pip-whl python3-setuptools-whl python3-venv python3.11-venv
0 upgraded, 4 newly installed, 1 to remove and 0 not upgraded.
Need to get 2,836 kB of archives.
After this operation, 878 kB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://deb.debian.org/debian bookworm/main amd64 python3-pip-whl all 23.0.1+dfsg-1 [1,717 kB]
Get:2 http://deb.debian.org/debian bookworm/main amd64 python3-setuptools-whl all 66.1.1-1 [1,111 kB]
Get:3 http://deb.debian.org/debian bookworm/main amd64 python3.11-venv amd64 3.11.2-6+deb12u4 [5,896 B]
Get:4 http://deb.debian.org/debian bookworm/main amd64 python3-venv amd64 3.11.2-1+b1 [1,200 B]
Fetched 2,836 kB in 0s (27.3 MB/s)
(Reading database ... 69928 files and directories currently installed.)
Removing python-pip-whl (20.3.4-4+deb11u1) ...
Selecting previously unselected package python3-pip-whl.
(Reading database ... 69897 files and directories currently installed.)
Preparing to unpack .../python3-pip-whl_23.0.1+dfsg-1_all.deb ...
Unpacking python3-pip-whl (23.0.1+dfsg-1) ...
Selecting previously unselected package python3-setuptools-whl.
Preparing to unpack .../python3-setuptools-whl_66.1.1-1_all.deb ...
Unpacking python3-setuptools-whl (66.1.1-1) ...
Selecting previously unselected package python3.11-venv.
Preparing to unpack .../python3.11-venv_3.11.2-6+deb12u4_amd64.deb ...
Unpacking python3.11-venv (3.11.2-6+deb12u4) ...
Selecting previously unselected package python3-venv.
Preparing to unpack .../python3-venv_3.11.2-1+b1_amd64.deb ...
Unpacking python3-venv (3.11.2-1+b1) ...
Setting up python3-setuptools-whl (66.1.1-1) ...
Setting up python3-pip-whl (23.0.1+dfsg-1) ...
Setting up python3.11-venv (3.11.2-6+deb12u4) ...
Setting up python3-venv (3.11.2-1+b1) ...
root@daz: yunohost app install https://github.com/YunoHost-Apps/grist_ynh/tree/fix_deps -f
Choose the domain where this app should be installed [daz.fr]: daz.fr
Who should have access to this app? (This can later be changed) [admins | all_users | visitors]: visitors
Choose the application language [fr | en]: fr
Choose an administrator user for this app [daz]: daz
Info: Installing grist…
Info: Provisioning sources...
Info: Provisioning system_user...
Info: Provisioning install_dir...
Info: Provisioning data_dir...
Info: Provisioning permissions...
Info: Provisioning ports...
Info: Provisioning apt...
Info: [+++.................] > Installing dependencies...
Info: [###+++..............] > Setting up source files...
Info: [######++++..........] > Adding system configurations related to grist...
Info: [##########+++.......] > Adding grist's configuration...
Info: [#############+++....] > Starting grist's systemd service...
Info: [####################] > Installation of grist completed
Success! Installation completed
The real problems were :
why is the --no-remove option activated (i could understand it is fore safety reasons)
and thus, was it safe to remove python-pip-whl by python3-pip-whl ?
I did a backup before running the commands, thanksfully everything went fine. But I didn’t check the other applications in details.