Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 13/07/2021, à 11:55

Guybrush_Threepwood

apturl ne fonctionne pas

Bonjour,

Plusieurs topic traitent déjà ce sujet mais rien n'a fonctionné dans mon cas... donc je me permets de remettre une pièce.
Je suis sur ubuntu21.04 et j'utilise Firefox 89.0.2.

Lorsque je clique sur un lien du type : apt://gimp, l'installation ne se lance pas.

J'ai d'abord suivi les étapes de cette doc : https://doc.ubuntu-fr.org/apturl en ayant au préalable désinstallé/réinstallé apturl et apturl-common :

1 - Remove apturl et apturl-common

┌[12:21][bob@bob][~] 
└─> sudo apt remove apturl apturl-common 
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-goa-1.0 gir1.2-javascriptcoregtk-4.0 gir1.2-snapd-1 gir1.2-webkit2-4.0 python3-dateutil python3-software-properties
  software-properties-common software-properties-gtk unattended-upgrades
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
  apturl apturl-common
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
After this operation, 228 kB disk space will be freed.
Do you want to continue? [Y/n] Y
(Reading database ... 346367 files and directories currently installed.)
Removing apturl (0.5.2ubuntu20) ...
Removing apturl-common (0.5.2ubuntu20) ...
Processing triggers for desktop-file-utils (0.26-1ubuntu1) ...
Processing triggers for gnome-menus (3.36.0-1ubuntu1) ...
Processing triggers for man-db (2.9.4-2) ...
Processing triggers for mailcap (3.68ubuntu1) ...
Processing triggers for bamfdaemon (0.5.5+21.04.20210119-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...

┌[12:22][bob@bob][~] 
└─>

2 - Autoremove

┌[12:22][bob@bob][~] 
└─> sudo apt autoremove --purge
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be REMOVED:
  gir1.2-goa-1.0* gir1.2-javascriptcoregtk-4.0* gir1.2-snapd-1* gir1.2-webkit2-4.0* python3-dateutil* python3-software-properties*
  software-properties-common* software-properties-gtk* unattended-upgrades*
0 upgraded, 0 newly installed, 9 to remove and 0 not upgraded.
After this operation, 2582 kB disk space will be freed.
Do you want to continue? [Y/n] Y
(Reading database ... 346337 files and directories currently installed.)
Removing software-properties-gtk (0.99.10) ...
Removing gir1.2-goa-1.0:amd64 (3.38.1-1ubuntu1.1) ...
Removing gir1.2-webkit2-4.0:amd64 (2.32.0-1ubuntu3) ...
Removing gir1.2-javascriptcoregtk-4.0:amd64 (2.32.0-1ubuntu3) ...
Removing gir1.2-snapd-1:amd64 (1.58-0ubuntu2) ...
Removing python3-dateutil (2.8.1-5) ...
Removing software-properties-common (0.99.10) ...
Removing python3-software-properties (0.99.10) ...
Removing unattended-upgrades (2.8) ...
Processing triggers for desktop-file-utils (0.26-1ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for gnome-menus (3.36.0-1ubuntu1) ...
Processing triggers for libglib2.0-0:amd64 (2.68.1-1~ubuntu21.04.1) ...
Processing triggers for libglib2.0-0:i386 (2.68.1-1~ubuntu21.04.1) ...
Processing triggers for man-db (2.9.4-2) ...
Processing triggers for dbus (1.12.20-1ubuntu3) ...
Processing triggers for shared-mime-info (2.0-1) ...
Processing triggers for mailcap (3.68ubuntu1) ...
Processing triggers for bamfdaemon (0.5.5+21.04.20210119-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
(Reading database ... 346168 files and directories currently installed.)
Purging configuration files for software-properties-common (0.99.10) ...
Purging configuration files for unattended-upgrades (2.8) ...
dpkg: warning: while removing unattended-upgrades, directory '/var/log/unattended-upgrades' not empty so not removed
Processing triggers for dbus (1.12.20-1ubuntu3) ...

┌[12:22][bob@bob][~] 
└─>

3 - Nettoyage des fichiers de configuration obsolètes

┌[12:23][bob@bob][~] 
└─> dpkg -l | grep -v ^ii
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                                            Version                                                              Architecture Description
+++-===============================================-====================================================================-============-==========================================================================================================================================================================
rc  apturl-common                                   0.5.2ubuntu20                                                        amd64        install packages using the apt protocol - common data

┌[12:23][bob@bob][~] 
└─> sudo dpkg -l | awk '/^rc/{print $2}' | xargs -r sudo dpkg -P
(Reading database ... 346161 files and directories currently installed.)
Purging configuration files for apturl-common (0.5.2ubuntu20) ...

┌[12:24][bob@bob][~] 
└─> 

4 - Ré-installation de apturl et apturl-common + full-upgrade

┌[12:30][bob@bob][~] 
└─> sudo apt update && sudo apt install apturl apturl-common 
Get:1 file:/var/cuda-repo-10-0-local-10.0.130-410.48  InRelease
Ign:1 file:/var/cuda-repo-10-0-local-10.0.130-410.48  InRelease
Get:2 file:/var/cuda-repo-10-0-local-10.0.130-410.48  Release [574 B]
Get:2 file:/var/cuda-repo-10-0-local-10.0.130-410.48  Release [574 B]
Hit:4 http://archive.ubuntu.com/ubuntu hirsute InRelease                                         
Hit:5 http://ppa.launchpad.net/papirus/papirus/ubuntu hirsute InRelease                          
Get:6 http://archive.ubuntu.com/ubuntu hirsute-updates InRelease [109 kB]  
Hit:7 http://ppa.launchpad.net/yannubuntu/boot-repair/ubuntu hirsute InRelease                                                         
Get:8 http://archive.ubuntu.com/ubuntu hirsute-backports InRelease [101 kB]                                                            
Hit:9 http://archive.ubuntu.com/ubuntu hirsute-security InRelease
Get:10 http://archive.ubuntu.com/ubuntu hirsute-backports/universe amd64 DEP-11 Metadata [9136 B]
Hit:11 https://repo.nord-apps.net/deb/nordvpn/debian stable InRelease  
Fetched 218 kB in 1s (404 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  gir1.2-goa-1.0 gir1.2-javascriptcoregtk-4.0 gir1.2-snapd-1 gir1.2-webkit2-4.0 python3-dateutil python3-software-properties
  software-properties-common software-properties-gtk unattended-upgrades
Suggested packages:
  libgtk2-perl bsd-mailx default-mta | mail-transport-agent needrestart
The following NEW packages will be installed:
  apturl apturl-common gir1.2-goa-1.0 gir1.2-javascriptcoregtk-4.0 gir1.2-snapd-1 gir1.2-webkit2-4.0 python3-dateutil
  python3-software-properties software-properties-common software-properties-gtk unattended-upgrades
0 upgraded, 11 newly installed, 0 to remove and 0 not upgraded.
Need to get 391 kB of archives.
After this operation, 2810 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://archive.ubuntu.com/ubuntu hirsute/main amd64 apturl-common amd64 0.5.2ubuntu20 [10,7 kB]
Get:2 http://archive.ubuntu.com/ubuntu hirsute-updates/main amd64 gir1.2-goa-1.0 amd64 3.38.1-1ubuntu1.1 [12,7 kB]
Get:3 http://archive.ubuntu.com/ubuntu hirsute/main amd64 gir1.2-snapd-1 amd64 1.58-0ubuntu2 [13,2 kB]
Get:4 http://archive.ubuntu.com/ubuntu hirsute/main amd64 python3-dateutil all 2.8.1-5 [79,8 kB]
Get:5 http://archive.ubuntu.com/ubuntu hirsute/main amd64 python3-software-properties all 0.99.10 [32,0 kB]
Get:6 http://archive.ubuntu.com/ubuntu hirsute/main amd64 software-properties-common all 0.99.10 [13,9 kB]
Get:7 http://archive.ubuntu.com/ubuntu hirsute/main amd64 software-properties-gtk all 0.99.10 [63,9 kB]
Get:8 http://archive.ubuntu.com/ubuntu hirsute/main amd64 gir1.2-javascriptcoregtk-4.0 amd64 2.32.0-1ubuntu3 [28,8 kB]
Get:9 http://archive.ubuntu.com/ubuntu hirsute/main amd64 gir1.2-webkit2-4.0 amd64 2.32.0-1ubuntu3 [79,4 kB]
Get:10 http://archive.ubuntu.com/ubuntu hirsute/main amd64 apturl amd64 0.5.2ubuntu20 [8476 B]
Get:11 http://archive.ubuntu.com/ubuntu hirsute/main amd64 unattended-upgrades all 2.8 [48,1 kB]
Fetched 391 kB in 0s (2310 kB/s)                
Preconfiguring packages ...
Selecting previously unselected package apturl-common.
(Reading database ... 346159 files and directories currently installed.)
Preparing to unpack .../00-apturl-common_0.5.2ubuntu20_amd64.deb ...
Unpacking apturl-common (0.5.2ubuntu20) ...
Selecting previously unselected package gir1.2-goa-1.0:amd64.
Preparing to unpack .../01-gir1.2-goa-1.0_3.38.1-1ubuntu1.1_amd64.deb ...
Unpacking gir1.2-goa-1.0:amd64 (3.38.1-1ubuntu1.1) ...
Selecting previously unselected package gir1.2-snapd-1:amd64.
Preparing to unpack .../02-gir1.2-snapd-1_1.58-0ubuntu2_amd64.deb ...
Unpacking gir1.2-snapd-1:amd64 (1.58-0ubuntu2) ...
Selecting previously unselected package python3-dateutil.
Preparing to unpack .../03-python3-dateutil_2.8.1-5_all.deb ...
Unpacking python3-dateutil (2.8.1-5) ...
Selecting previously unselected package python3-software-properties.
Preparing to unpack .../04-python3-software-properties_0.99.10_all.deb ...
Unpacking python3-software-properties (0.99.10) ...
Selecting previously unselected package software-properties-common.
Preparing to unpack .../05-software-properties-common_0.99.10_all.deb ...
Unpacking software-properties-common (0.99.10) ...
Selecting previously unselected package software-properties-gtk.
Preparing to unpack .../06-software-properties-gtk_0.99.10_all.deb ...
Unpacking software-properties-gtk (0.99.10) ...
Selecting previously unselected package gir1.2-javascriptcoregtk-4.0:amd64.
Preparing to unpack .../07-gir1.2-javascriptcoregtk-4.0_2.32.0-1ubuntu3_amd64.deb ...
Unpacking gir1.2-javascriptcoregtk-4.0:amd64 (2.32.0-1ubuntu3) ...
Selecting previously unselected package gir1.2-webkit2-4.0:amd64.
Preparing to unpack .../08-gir1.2-webkit2-4.0_2.32.0-1ubuntu3_amd64.deb ...
Unpacking gir1.2-webkit2-4.0:amd64 (2.32.0-1ubuntu3) ...
Selecting previously unselected package apturl.
Preparing to unpack .../09-apturl_0.5.2ubuntu20_amd64.deb ...
Unpacking apturl (0.5.2ubuntu20) ...
Selecting previously unselected package unattended-upgrades.
Preparing to unpack .../10-unattended-upgrades_2.8_all.deb ...
Unpacking unattended-upgrades (2.8) ...
Setting up gir1.2-javascriptcoregtk-4.0:amd64 (2.32.0-1ubuntu3) ...
Setting up gir1.2-snapd-1:amd64 (1.58-0ubuntu2) ...
Setting up unattended-upgrades (2.8) ...

Creating config file /etc/apt/apt.conf.d/20auto-upgrades with new version

Creating config file /etc/apt/apt.conf.d/50unattended-upgrades with new version
Created symlink /etc/systemd/system/multi-user.target.wants/unattended-upgrades.service → /lib/systemd/system/unattended-upgrades.service.
Synchronizing state of unattended-upgrades.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable unattended-upgrades
Setting up python3-software-properties (0.99.10) ...
Setting up gir1.2-goa-1.0:amd64 (3.38.1-1ubuntu1.1) ...
Setting up apturl-common (0.5.2ubuntu20) ...
Setting up python3-dateutil (2.8.1-5) ...
Setting up gir1.2-webkit2-4.0:amd64 (2.32.0-1ubuntu3) ...
Setting up software-properties-common (0.99.10) ...
Setting up software-properties-gtk (0.99.10) ...
Processing triggers for bamfdaemon (0.5.5+21.04.20210119-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for desktop-file-utils (0.26-1ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for gnome-menus (3.36.0-1ubuntu1) ...
Processing triggers for libglib2.0-0:amd64 (2.68.1-1~ubuntu21.04.1) ...
Processing triggers for libglib2.0-0:i386 (2.68.1-1~ubuntu21.04.1) ...
Processing triggers for man-db (2.9.4-2) ...
Processing triggers for dbus (1.12.20-1ubuntu3) ...
Processing triggers for shared-mime-info (2.0-1) ...
Processing triggers for mailcap (3.68ubuntu1) ...
Setting up apturl (0.5.2ubuntu20) ...

┌[12:31][bob@bob][~] 
└─> sudo apt full-upgrade 
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

┌[12:31][bob@bob][~] 
└─> 

5 - Défini apturl comme gestionnaire par défaut des liens apt :

┌[12:36][bob@bob][~] 
└─> xdg-mime default apturl.desktop x-scheme-handler/apt

┌[12:37][bob@bob][~] 
└─> xdg-mime query default x-scheme-handler/apt
apturl.desktop

┌[12:37][bob@bob][~] 
└─> 

J'ai crée les entrées suivants dans about:config de Firefox
   - network.protocol-handler.app.apt en chaîne de caractères à /usr/bin/apturl
   - network.protocol-handler.app.apt+http en chaîne de caractères à /usr/bin/apturl
   - network.protocol-handler.warn-external.apt en valeur booléenne à false
   - network.protocol-handler.warn-external.apt+http en valeur booléenne à false
   - network.protocol-handler.expose.apt en valeur booléenne à false

Dans Firefox --> Options --> Application, "apt" est bien associé au programme /usr/bin/apturl


Mais l'installation via les liens apt ne fonctionne toujours pas...

Merci d'avance pour votre aide.

Hors ligne

#2 Le 14/07/2021, à 08:47

Guybrush_Threepwood

Re : apturl ne fonctionne pas

J'ai installé Chrome pour essayer car d'après les infos, il semble avoir moins de soucis avec apturl que Firefox. Mais le constat est le même... les liens apturl ne fonctionnent toujours pas.

Hors ligne

#3 Le 14/07/2021, à 09:06

xubu1957

Re : apturl ne fonctionne pas

Bonjour,

Et avec chromium-browser ?


Conseils pour les nouveaux demandeurs et pas qu'eux
Important : Pensez à passer vos sujets en [Résolu] lorsque ceux-ci le sont, au début du titre en cliquant sur Modifier sous le premier message, et un bref récapitulatif de la solution à la fin de celui-ci. Merci.                   Membre de Linux-Azur

Hors ligne

#4 Le 14/07/2021, à 09:32

Guybrush_Threepwood

Re : apturl ne fonctionne pas

Avec Chromium lorsque je clique sur le lien apt://gimp :
   - Une fenetre popup s'ouvre et me propose : "Open xdg-open"
   - Puis une seconde fenetre me propose "Select an application to open x-scheme-handler/apt. More applications are available in Discover"

Mais la liste des applications proposées est vide et je n'ai pas la possibilité de saisir un chemin (genre /usr/bin/apturl).

Hors ligne

#5 Le 14/07/2021, à 09:49

xubu1957

Re : apturl ne fonctionne pas

Je n'ai pas le savoir, pour aider plus. sad


Conseils pour les nouveaux demandeurs et pas qu'eux
Important : Pensez à passer vos sujets en [Résolu] lorsque ceux-ci le sont, au début du titre en cliquant sur Modifier sous le premier message, et un bref récapitulatif de la solution à la fin de celui-ci. Merci.                   Membre de Linux-Azur

Hors ligne

#6 Le 15/07/2021, à 17:37

Guybrush_Threepwood

Re : apturl ne fonctionne pas

Le problème persiste mais je ne désespère pas.
Après plusieurs essais infructueux sur différents navigateur, j'ai essayé de lancer directement apturl dans une console. Il y a peut être un soucis avec :

┌[18:35][bob@bob][~] 
└─> apturl apt://gimp
/usr/lib/python3/dist-packages/AptUrl/gtk/GtkUI.py:1: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
  from gi.repository import Gtk
ERROR:root:importing aptdaemon
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/AptUrl/gtk/backend/__init__.py", line 40, in get_backend
    from .InstallBackendAptdaemon import InstallBackendAptdaemon
  File "/usr/lib/python3/dist-packages/AptUrl/gtk/backend/InstallBackendAptdaemon.py", line 10, in <module>
    from UpdateManager.backend import InstallBackend
  File "/usr/lib/python3/dist-packages/UpdateManager/backend/__init__.py", line 24, in <module>
    from UpdateManager.Dialogs import Dialog
ModuleNotFoundError: No module named 'UpdateManager.Dialogs'
Traceback (most recent call last):
  File "/usr/bin/apturl-gtk", line 43, in <module>
    ui = GtkUI()
  File "/usr/lib/python3/dist-packages/AptUrl/gtk/GtkUI.py", line 38, in __init__
    self.backend = get_backend(self.dia)
  File "/usr/lib/python3/dist-packages/AptUrl/gtk/backend/__init__.py", line 51, in get_backend
    raise Exception("No working backend found, please try installing "
Exception: No working backend found, please try installing synaptic or aptdaemon

┌[18:35][bob@bob][~] 
└─> 

Si ca peut aider ?

Hors ligne

#7 Le 15/07/2021, à 17:41

xubu1957

Re : apturl ne fonctionne pas

Bonjour,

Essaye :

sudo apt-get remove apturl apturl-common 
sudo apt-get install apturl apturl-common

> ecnf2016.org/929444-error-with-apturl-in-ubuntu-


Conseils pour les nouveaux demandeurs et pas qu'eux
Important : Pensez à passer vos sujets en [Résolu] lorsque ceux-ci le sont, au début du titre en cliquant sur Modifier sous le premier message, et un bref récapitulatif de la solution à la fin de celui-ci. Merci.                   Membre de Linux-Azur

Hors ligne

#8 Le 15/07/2021, à 17:54

Guybrush_Threepwood

Re : apturl ne fonctionne pas

Ceci n'avait pas marché, j'avais déjà essayé comme je le dis dans mon 1er post. J'ai ré-essayé à l'instant pour être sûr et même résultat.

sudo apt remove apturl apturl-common
sudo apt install apturl apturl-common

Par contre dans le lien, https://fr.ecnf2016.org/929444-error-wi … MF-article , il propose aussi :

sudo apt-get install update-manager python3-update-manager

Et après ça, apturl fonctionne sur console. La commande suivante m'ouvre bien une fenêtre qui m'indique : "Gimp is already installed"

apturl apt://gimp

Par contre toujours pas de réaction sur Firefox... Je continue à chercher

Hors ligne

#9 Le 15/07/2021, à 18:38

jplemoine

Re : apturl ne fonctionne pas

Ça dit :

 "please try installing synaptic or aptdaemon"

Donc,

apt install aptdaemon

et /ou

apt install synaptic

sous root ou avec sudo devant.


Membre de l'ALDIL (Association Lyonnaise pour le Développement de l'Informatique Libre)
- En pro, après 20 ans de développement, administrateur Linux / Unix depuis Avril 2019.
- En privé, sous Ubuntu-Xubuntu depuis 2009.

En ligne

#10 Le 15/07/2021, à 19:00

Guybrush_Threepwood

Re : apturl ne fonctionne pas

jplemoine a écrit :

Ça dit :

 "please try installing synaptic or aptdaemon"

Donc,

apt install aptdaemon

et /ou

apt install synaptic

sous root ou avec sudo devant.

Ces programmes étaient déjà installés quand ce message apparaissait. Mais ceci est résolu après :

sudo apt-get install update-manager python3-update-manager

Maintenant apturl fonctionne en ligne de commande, mais toujours pas sur Firefox.

Hors ligne