Vitexus / FirefoxNightlyDeb

Debian package installing Firefox Nightly
https://www.mozilla.org/
BSD 2-Clause "Simplified" License
17 stars 9 forks source link

Python packages depending on *python3.7* uninstallable on Debian 11 (testing/bullseye) #7

Closed paulmenzel closed 3 years ago

paulmenzel commented 3 years ago

The three packages below cannot be upgraded to on Debian sid/unstable, as they depend on the package python3.7, while the current version is python3.9.

$ LANG=C apt list --upgradable
Listing... Done
python3-certifi/sid,sid 2020.12.5 all [upgradable from: 2020.6.20-1]
python3-psutil/sid 5.8.1 amd64 [upgradable from: 5.8.0-1]
python3-urllib3/sid,sid 1.26.3 all [upgradable from: 1.26.2-1]
$ apt show python3-certifi
Package: python3-certifi
Version: 2020.12.5
Priority: optional
Section: python
Maintainer: Kenneth Reitz <me@kennethreitz.com>
Installed-Size: 385 kB
Depends: python3.7
Download-Size: 139 kB
APT-Sources: http://repo.vitexsoftware.cz sid/main amd64 Packages
Description: Python package certifi converted by py2deb on February 18, 2021 at 15:54
[…]

Could they just depend on python3?

Vitexus commented 3 years ago

I think it's OK now

sudo apt install lsb-release wget
echo "deb http://repo.vitexsoftware.cz $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/vitexsoftware.list
sudo wget -O /etc/apt/trusted.gpg.d/vitexsoftware.gpg http://repo.vitexsoftware.cz/keyring.gpg
sudo apt update
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
lsb-release is already the newest version (11.1.0).
lsb-release set to manually installed.
wget is already the newest version (1.21-1+b1).
The following package was automatically installed and is no longer required:
  linux-image-5.10.0-1-amd64
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
deb http://repo.vitexsoftware.cz bullseye main
--2021-03-26 18:32:27--  http://repo.vitexsoftware.cz/keyring.gpg
Resolving repo.vitexsoftware.cz (repo.vitexsoftware.cz)... 213.151.89.97
Connecting to repo.vitexsoftware.cz (repo.vitexsoftware.cz)|213.151.89.97|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 680 [application/octet-stream]
Saving to: ‘/etc/apt/trusted.gpg.d/vitexsoftware.gpg’

/etc/apt/trusted.gpg.d/vitexsoftware.gpg          100%[=============================================================================================================>]     680  --.-KB/s    in 0s      

2021-03-26 18:32:27 (36.8 MB/s) - ‘/etc/apt/trusted.gpg.d/vitexsoftware.gpg’ saved [680/680]

Get:1 http://repo.vitexsoftware.cz bullseye InRelease [13.2 kB]
Hit:2 http://deb.debian.org/debian testing InRelease                                      
Get:3 http://repo.vitexsoftware.cz bullseye/main amd64 Packages [16.8 kB]
Fetched 30.0 kB in 0s (84.6 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
root@debian:~# apt install nightly
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following package was automatically installed and is no longer required:
  linux-image-5.10.0-1-amd64
Use 'apt autoremove' to remove it.
The following additional packages will be installed:
  dictionaries-common emacsen-common hunspell-en-us libgdk-pixbuf-xlib-2.0-0 libgdk-pixbuf2.0-0 libhunspell-1.7-0 libice6 libsm6 libstartup-notification0 libxcb-util1 libxt6
Suggested packages:
  ispell | aspell | hunspell hunspell openoffice.org-hunspell | openoffice.org-core fonts-stix | otf-stix fonts-lmodern mozplugger libgnomeui-0 libcanberra0
The following NEW packages will be installed:
  dictionaries-common emacsen-common hunspell-en-us libgdk-pixbuf-xlib-2.0-0 libgdk-pixbuf2.0-0 libhunspell-1.7-0 libice6 libsm6 libstartup-notification0 libxcb-util1 libxt6 nightly
0 upgraded, 12 newly installed, 0 to remove and 0 not upgraded.
Need to get 1324 kB of archives.
After this operation, 3496 kB of additional disk space will be used.
Do you want to continue? [Y/n] 
Get:1 http://deb.debian.org/debian testing/main amd64 emacsen-common all 3.0.4 [19.3 kB]
Get:2 http://repo.vitexsoftware.cz bullseye/main amd64 nightly all 88.0a1+ [226 kB]
Get:3 http://deb.debian.org/debian testing/main amd64 dictionaries-common all 1.28.4 [239 kB]
Get:4 http://deb.debian.org/debian testing/main amd64 hunspell-en-us all 1:2019.10.06-1 [268 kB]
Get:5 http://deb.debian.org/debian testing/main amd64 libgdk-pixbuf-xlib-2.0-0 amd64 2.40.2-2 [47.9 kB]
Get:6 http://deb.debian.org/debian testing/main amd64 libgdk-pixbuf2.0-0 amd64 2.40.2-2 [14.1 kB]
Get:7 http://deb.debian.org/debian testing/main amd64 libhunspell-1.7-0 amd64 1.7.0-3 [181 kB]
Get:8 http://deb.debian.org/debian testing/main amd64 libice6 amd64 2:1.0.10-1 [58.5 kB]
Get:9 http://deb.debian.org/debian testing/main amd64 libsm6 amd64 2:1.2.3-1 [35.1 kB]
Get:10 http://deb.debian.org/debian testing/main amd64 libxcb-util1 amd64 0.4.0-1+b1 [23.2 kB]
Get:11 http://deb.debian.org/debian testing/main amd64 libstartup-notification0 amd64 0.12-6+b1 [23.1 kB]
Get:12 http://deb.debian.org/debian testing/main amd64 libxt6 amd64 1:1.2.0-1 [189 kB]
Fetched 1324 kB in 0s (4784 kB/s)
Preconfiguring packages ...
Selecting previously unselected package emacsen-common.
(Reading database ... 66747 files and directories currently installed.)
Preparing to unpack .../00-emacsen-common_3.0.4_all.deb ...
Unpacking emacsen-common (3.0.4) ...
Selecting previously unselected package dictionaries-common.
Preparing to unpack .../01-dictionaries-common_1.28.4_all.deb ...
Adding 'diversion of /usr/share/dict/words to /usr/share/dict/words.pre-dictionaries-common by dictionaries-common'
Unpacking dictionaries-common (1.28.4) ...
Selecting previously unselected package hunspell-en-us.
Preparing to unpack .../02-hunspell-en-us_1%3a2019.10.06-1_all.deb ...
Unpacking hunspell-en-us (1:2019.10.06-1) ...
Selecting previously unselected package libgdk-pixbuf-xlib-2.0-0:amd64.
Preparing to unpack .../03-libgdk-pixbuf-xlib-2.0-0_2.40.2-2_amd64.deb ...
Unpacking libgdk-pixbuf-xlib-2.0-0:amd64 (2.40.2-2) ...
Selecting previously unselected package libgdk-pixbuf2.0-0:amd64.
Preparing to unpack .../04-libgdk-pixbuf2.0-0_2.40.2-2_amd64.deb ...
Unpacking libgdk-pixbuf2.0-0:amd64 (2.40.2-2) ...
Selecting previously unselected package libhunspell-1.7-0:amd64.
Preparing to unpack .../05-libhunspell-1.7-0_1.7.0-3_amd64.deb ...
Unpacking libhunspell-1.7-0:amd64 (1.7.0-3) ...
Selecting previously unselected package libice6:amd64.
Preparing to unpack .../06-libice6_2%3a1.0.10-1_amd64.deb ...
Unpacking libice6:amd64 (2:1.0.10-1) ...
Selecting previously unselected package libsm6:amd64.
Preparing to unpack .../07-libsm6_2%3a1.2.3-1_amd64.deb ...
Unpacking libsm6:amd64 (2:1.2.3-1) ...
Selecting previously unselected package libxcb-util1:amd64.
Preparing to unpack .../08-libxcb-util1_0.4.0-1+b1_amd64.deb ...
Unpacking libxcb-util1:amd64 (0.4.0-1+b1) ...
Selecting previously unselected package libstartup-notification0:amd64.
Preparing to unpack .../09-libstartup-notification0_0.12-6+b1_amd64.deb ...
Unpacking libstartup-notification0:amd64 (0.12-6+b1) ...
Selecting previously unselected package libxt6:amd64.
Preparing to unpack .../10-libxt6_1%3a1.2.0-1_amd64.deb ...
Unpacking libxt6:amd64 (1:1.2.0-1) ...
Selecting previously unselected package nightly.
Preparing to unpack .../11-nightly_88.0a1+_all.deb ...
Current Language is ⁝C.UTF-8⁝ = ⁝en-US⁝
--2021-03-26 18:32:41--  https://download.mozilla.org/?product=firefox-nightly-latest-l10n-ssl&os=linux64&lang=en-US
Resolving download.mozilla.org (download.mozilla.org)... 34.194.193.175, 3.221.255.89, 18.210.232.122
Connecting to download.mozilla.org (download.mozilla.org)|34.194.193.175|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://download-installer.cdn.mozilla.net/pub/firefox/nightly/latest-mozilla-central-l10n/firefox-89.0a1.en-US.linux-x86_64.tar.bz2 [following]
--2021-03-26 18:32:42--  https://download-installer.cdn.mozilla.net/pub/firefox/nightly/latest-mozilla-central-l10n/firefox-89.0a1.en-US.linux-x86_64.tar.bz2
Resolving download-installer.cdn.mozilla.net (download-installer.cdn.mozilla.net)... 65.9.93.92, 2600:9000:2127:d000:e:19d6:1546:5981, 2600:9000:2127:ac00:e:19d6:1546:5981, ...
Connecting to download-installer.cdn.mozilla.net (download-installer.cdn.mozilla.net)|65.9.93.92|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 84746214 (81M) [application/x-tar]
Saving to: ‘/tmp/nightly.tar.bz2’

/tmp/nightly.tar.bz2                              100%[=============================================================================================================>]  80.82M  12.2MB/s    in 7.3s    

2021-03-26 18:32:49 (11.0 MB/s) - ‘/tmp/nightly.tar.bz2’ saved [84746214/84746214]

firefox/updater
firefox/Throbber-small.gif
firefox/defaults/pref/channel-prefs.js
firefox/libsmime3.so
firefox/libmozsqlite3.so
firefox/fonts/TwemojiMozilla.ttf
firefox/updater.ini
firefox/libmozavcodec.so
firefox/gtk2/libmozgtk.so
firefox/libmozgtk.so
firefox/minidump-analyzer
firefox/platform.ini
firefox/crashreporter
firefox/plugin-container
firefox/dmd.py
firefox/libnss3.so
firefox/firefox
firefox/icons/updater.png
firefox/browser/chrome/icons/default/default64.png
firefox/browser/chrome/icons/default/default32.png
firefox/browser/chrome/icons/default/default128.png
firefox/browser/chrome/icons/default/default16.png
firefox/browser/chrome/icons/default/default48.png
firefox/browser/crashreporter-override.ini
firefox/browser/features/webcompat@mozilla.org.xpi
firefox/browser/features/screenshots@mozilla.org.xpi
firefox/browser/features/webcompat-reporter@mozilla.org.xpi
firefox/browser/features/pictureinpicture@mozilla.org.xpi
firefox/browser/features/formautofill@mozilla.org.xpi
firefox/browser/features/doh-rollout@mozilla.org.xpi
firefox/browser/omni.ja
firefox/pingsender
firefox/libsoftokn3.so
firefox/crashreporter.ini
firefox/update-settings.ini
firefox/liboggwasm.so
firefox/libssl3.so
firefox/precomplete
firefox/liblgpllibs.so
firefox/application.ini
firefox/libfreeblpriv3.so
firefox/fix_stacks.py
firefox/libplc4.so
firefox/libgraphitewasm.so
firefox/removed-files
firefox/gmp-clearkey/0.1/libclearkey.so
firefox/gmp-clearkey/0.1/manifest.json
firefox/dependentlibs.list
firefox/firefox-bin
firefox/libplds4.so
firefox/libxul.so
firefox/libmozavutil.so
firefox/libmozwayland.so
firefox/libnssckbi.so
firefox/libmozsandbox.so
firefox/omni.ja
firefox/libnspr4.so
firefox/libnssutil3.so
firefox/plugin-container.sig
firefox/firefox.sig
firefox/gmp-clearkey/0.1/libclearkey.so.sig
firefox/firefox-bin.sig
firefox/libxul.so.sig
Unpacking nightly (88.0a1+) ...
Setting up libice6:amd64 (2:1.0.10-1) ...
Setting up libgdk-pixbuf-xlib-2.0-0:amd64 (2.40.2-2) ...
Setting up libxcb-util1:amd64 (0.4.0-1+b1) ...
Setting up emacsen-common (3.0.4) ...
Setting up libgdk-pixbuf2.0-0:amd64 (2.40.2-2) ...
Setting up libhunspell-1.7-0:amd64 (1.7.0-3) ...
Setting up libsm6:amd64 (2:1.2.3-1) ...
Setting up libstartup-notification0:amd64 (0.12-6+b1) ...
Setting up dictionaries-common (1.28.4) ...
Setting up libxt6:amd64 (1:1.2.0-1) ...
Setting up hunspell-en-us (1:2019.10.06-1) ...
Setting up nightly (88.0a1+) ...
update-alternatives: using /opt/nightly/firefox to provide /usr/bin/x-www-browser (x-www-browser) in auto mode
update-alternatives: warning: skip creation of /usr/share/man/man1/x-www-browser.1.gz because associated file /usr/share/man/man1/firefox-esr.1.gz (of link group x-www-browser) doesn't exist
update-alternatives: using /opt/nightly/firefox to provide /usr/bin/gnome-www-browser (gnome-www-browser) in auto mode
update-alternatives: warning: skip creation of /usr/share/man/man1/gnome-www-browser.1.gz because associated file /usr/share/man/man1/firefox-esr.1.gz (of link group gnome-www-browser) doesn't exist
Processing triggers for libc-bin (2.31-10) ...
Processing triggers for man-db (2.9.4-2) ...
Processing triggers for mailcap (3.69) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for dictionaries-common (1.28.4) ...
root@debian:~# 
paulmenzel commented 3 years ago

Yes, it is fixed. Thank you very much.

paulmenzel commented 3 years ago

Sorry, unfortunately, I misinterpreted the apt full-upgrade output.

0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

The package are still there in apt list --upgradable.

The package nightly does not depend on the three python packages anymore, so your test command probably didn’t run into this. The command below wouldn’t remove nightly.

$ sudo LANG=C apt purge python3-certifi python3-psutil python3-urllib3
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  gir1.2-dazzle-1.0 gir1.2-grilo-0.3 gir1.2-mediaart-2.0
  python-babel-localedata python3-alabaster python3-babel python3-cups
  python3-debianbts python3-httplib2 python3-imagesize python3-jinja2
  python3-pysimplesoap python3-smbc python3-snowballstemmer python3-tz
  sphinx-common
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
  bpytop* chrome-gnome-shell* gnome-core* gnome-music* python3-certifi*
  python3-cupshelpers* python3-psutil* python3-reportbug* python3-requests*
  python3-sphinx* python3-urllib3* reportbug* system-config-printer*
  system-config-printer-common* system-config-printer-udev*
0 upgraded, 0 newly installed, 15 to remove and 2 not upgraded.
After this operation, 15.3 MB disk space will be freed.

The packages themselves still depend on python3.7. As they do not seem to be needed anymore, maybe remove the three packages from the archive?

Vitexus commented 3 years ago

New version now require only: libc6 libgcc1 libstdc++6 packes

The nightly binary do not use lot of system dependencies:

vitex@exiv:~$ ldd /opt/nightly/firefox-bin | awk '/=>/{print $(NF-1)}'  |   while read n; do apt-file search $n; done |   awk '{print $1}' | sed 's/://' | sort | uniq
libc6
libgcc1
libstdc++6
vitex@exiv:~$ ldd /opt/nightly/firefox-bin
        linux-vdso.so.1 (0x00007ffdc0de7000)
        libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f8fedcce000)
        libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f8fedcc9000)
        libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f8fedb45000)
        libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f8fed9c2000)
        libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f8fed9a8000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f8fed7e7000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f8feddde000)

So there is not reason to require all debian's firefox-esr depenencies.

paulmenzel commented 3 years ago

Sorry for not being able to communicate my problem better. My point is, that if the Python packages are in the archive http://repo.vitexsoftware.cz sid/main, APT is going to see them nevertheless – if needed or not, and wants to upgrade to the version failing due to the python3.7 dependency. If the Python packages are not needed, they should be removed.

Vitexus commented 3 years ago

Ah, I'll do repository cleanup.