Benjamin-Loison / waydroid

Waydroid uses a container-based approach to boot a full Android system on a regular GNU/Linux system like Ubuntu.
https://waydro.id
GNU General Public License v3.0
0 stars 0 forks source link

[BUG] `apt install` does not work on Linux Mint 22 Cinnamon #40

Open Benjamin-Loison opened 2 months ago

Benjamin-Loison commented 2 months ago

Describe the bug

On my Framework 13.

See Benjamin-Loison/cinnamon/issues/116#issuecomment-2257254831.

Waydroid version

Not read.

Device

Linux Desktop

Operating System

Not read.

Kernel version

Not read.

Desktop Environment

Not read.

GPU

Not read.

Logs

/var/lib/waydroid/waydroid.cfg /var/lib/waydroid/waydroid.prop /var/lib/waydroid/waydroid_base.prop /var/lib/waydroid/waydroid.log sudo waydroid shell -- logcat -d | tee logcat.txt sudo dmesg | tee dmesg.txt

Benjamin-Loison commented 2 months ago

Recent issues found in waydroid/issues by searching Linux Mint, apt and gbinder do not seem relevant.

Benjamin-Loison commented 2 months ago
apt show python3
Output: ``` Package: python3 Version: 3.12.3-0ubuntu1 Priority: important Section: python Source: python3-defaults Origin: Ubuntu Maintainer: Ubuntu Developers Original-Maintainer: Matthias Klose Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 84.0 kB Provides: python3-profiler, python3-supported-max (= 3.12), python3-supported-min (= 3.12) Pre-Depends: python3-minimal (= 3.12.3-0ubuntu1) Depends: python3.12 (>= 3.12.3-0~), libpython3-stdlib (= 3.12.3-0ubuntu1) Suggests: python3-doc (>= 3.12.3-0ubuntu1), python3-tk (>= 3.12.3-0~), python3-venv (>= 3.12.3-0ubuntu1) Conflicts: python3-distutils Replaces: python3-minimal (<< 3.1.2-2) Homepage: https://www.python.org/ Task: cloud-minimal, minimal, server-minimal Download-Size: 24.1 kB APT-Manual-Installed: yes APT-Sources: https://mirror.hoobly.com/ubuntu noble/main amd64 Packages Description: interactive high-level object-oriented language (default python3 version) Python, the high-level, interactive object oriented language, includes an extensive class library with lots of goodies for network programming, system administration, sounds and graphics. . This package is a dependency package, which depends on Debian's default Python 3 version (currently v3.12). ```
Benjamin-Loison commented 2 months ago
apt show python3-gbinder
Output: ``` Package: python3-gbinder Version: 1.1.2 Priority: optional Section: python Source: gbinder-python Maintainer: Eugenio Paolantonio (g7) Installed-Size: 384 kB Depends: libc6 (>= 2.4), libgbinder (>= 1.1.20), python3 (<< 3.11), python3 (>= 3.10~) Download-Size: 98.4 kB APT-Sources: https://repo.waydro.id jammy/main all Packages Description: Cython extension module for C++ gbinder functions This package contains a cython extension module for gbinder, allowing to call gbinder from Python scripts. ```

waydroid/gbinder-python

waydroid/gbinder-python/blob/b06f2f00c28ac683a3b23ac0d56efdf38285501d/debian/control seems to be the most interesting file, no other seems interesting, but it does not mention the condition we face and grep -r '3.11' is not relevant.

Does this package exists outside of Waydroid APT repository?

Benjamin-Loison commented 2 months ago
sudo apt install -y python3-gbinder
Output: ``` Reading package lists... Done Building dependency tree... Done Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: python3-gbinder : Depends: python3 (< 3.11) but 3.12.3-0ubuntu1 is to be installed E: Unable to correct problems, you have held broken packages. ```
Benjamin-Loison commented 2 months ago

The only results on DuckDuckGo and Google for "Depends: python3 (< 3.11) but 3.12.3-0ubuntu1" are:

Benjamin-Loison commented 2 months ago

/etc/apt/sources.list.d/waydroid.list:

deb [signed-by=/usr/share/keyrings/waydroid.gpg] https://repo.waydro.id/ jammy main
Benjamin-Loison commented 2 months ago

https://docs.waydro.id/usage/install-on-desktops#ubuntu-debian-and-derivatives

curl https://repo.waydro.id | sudo bash
Output: ``` % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 1699 100 1699 0 0 8665 0 --:--:-- --:--:-- --:--:-- 8712 ######################################################################## 100.0% deb [signed-by=/usr/share/keyrings/waydroid.gpg] https://repo.waydro.id/ noble main Hit:1 http://security.ubuntu.com/ubuntu noble-security InRelease Hit:2 http://repo.mysql.com/apt/ubuntu jammy InRelease Hit:3 https://updates.signal.org/desktop/apt xenial InRelease Hit:4 https://packages.element.io/debian default InRelease Hit:5 https://mirror.hoobly.com/ubuntu noble InRelease Hit:6 https://mirror.hoobly.com/ubuntu noble-updates InRelease Ign:7 http://packages.linuxmint.com wilma InRelease Get:8 https://repo.waydro.id noble InRelease [1,309 B] Hit:9 https://mirror.hoobly.com/ubuntu noble-backports InRelease Hit:10 http://packages.linuxmint.com wilma Release Get:11 https://repo.waydro.id noble/main all Packages [2,167 B] Fetched 3,476 B in 1s (3,242 B/s) Reading package lists... Done Building dependency tree... Done Reading state information... Done All packages are up to date. ```

waydroid.list:

deb [signed-by=/usr/share/keyrings/waydroid.gpg] https://repo.waydro.id/ noble main
sudo apt install -y waydroid
Output: ``` Reading package lists... Done Building dependency tree... Done Reading state information... Done The following additional packages will be installed: libgbinder libglibutil python3-gbinder The following NEW packages will be installed: libgbinder libglibutil python3-gbinder waydroid 0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded. Need to get 401 kB of archives. After this operation, 1,097 kB of additional disk space will be used. Get:1 https://repo.waydro.id noble/main all libglibutil amd64 1.0.66 [25.9 kB] Get:2 https://repo.waydro.id noble/main all libgbinder amd64 1.1.25 [57.3 kB] Get:3 https://repo.waydro.id noble/main all python3-gbinder amd64 1.1.2 [95.4 kB] Get:4 https://repo.waydro.id noble/main all waydroid all 1.4.2 [223 kB] Fetched 401 kB in 0s (1,073 kB/s) Selecting previously unselected package libglibutil. (Reading database ... 917981 files and directories currently installed.) Preparing to unpack .../libglibutil_1.0.66_amd64.deb ... Unpacking libglibutil (1.0.66) ... Selecting previously unselected package libgbinder. Preparing to unpack .../libgbinder_1.1.25_amd64.deb ... Unpacking libgbinder (1.1.25) ... Selecting previously unselected package python3-gbinder. Preparing to unpack .../python3-gbinder_1.1.2_amd64.deb ... Unpacking python3-gbinder (1.1.2) ... Selecting previously unselected package waydroid. Preparing to unpack .../waydroid_1.4.2_all.deb ... Unpacking waydroid (1.4.2) ... Setting up libglibutil (1.0.66) ... Setting up libgbinder (1.1.25) ... Setting up python3-gbinder (1.1.2) ... Setting up waydroid (1.4.2) ... Processing triggers for mate-menus (1.26.1+mint1) ... Processing triggers for libc-bin (2.39-0ubuntu8.2) ... Processing triggers for dbus (1.14.10-4ubuntu4) ... Processing triggers for mailcap (3.70+nmu1ubuntu1) ... Processing triggers for desktop-file-utils (0.27-2build1) ... Processing triggers for hicolor-icon-theme (0.17-2) ... Processing triggers for gnome-menus (3.36.0-1.1ubuntu3) ... ```
Benjamin-Loison commented 2 months ago
waydroid show-full-ui
[03:14:29] Starting waydroid session
[03:14:29] WAYLAND_DISPLAY is not set, defaulting to "wayland-0"
[03:14:29] Wayland socket '/run/user/1000/wayland-0' doesn't exist; are you running a Wayland compositor?
Benjamin-Loison commented 2 months ago

Note that I kept my Waydroid state.