MInt 19: python3 upgrade messed up. Update manager blocked.

Questions about other topics - please check if your question fits better in another category before posting here
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
ec91066
Level 1
Level 1
Posts: 35
Joined: Wed Mar 26, 2014 7:14 pm

Re: MInt 19: python3 upgrade messed up. Update manager blocked.

Post by ec91066 »

:)

fernando@L755-Mint ~ $ sudo /usr/bin/apt update
Atingido:1 http://archive.canonical.com/ubuntu bionic InRelease
Obter:2 http://security.ubuntu.com/ubuntu bionic-security InRelease [83,2 kB]
Ign:3 https://mirrors.up.pt/linuxmint-packages tara InRelease
Atingido:4 https://mirrors.up.pt/linuxmint-packages tara Release
Atingido:6 http://archive.ubuntumirror.dei.uc.pt/ubuntu bionic InRelease
Obter:7 http://archive.ubuntumirror.dei.uc.pt/ubuntu bionic-updates InRelease [88,7 kB]
Obter:8 http://archive.ubuntumirror.dei.uc.pt/ubuntu bionic-backports InRelease [74,6 kB]
Obtidos 247 kB em 1s (244 kB/s)
A ler as listas de pacotes... Pronto
A construir árvore de dependências
A ler a informação de estado... Pronto
11 packages can be upgraded. Run 'apt list --upgradable' to see them.
ec91066
Level 1
Level 1
Posts: 35
Joined: Wed Mar 26, 2014 7:14 pm

Re: MInt 19: python3 upgrade messed up. Update manager blocked.

Post by ec91066 »

A lot less errors now...

A instalar python3 (3.6.5-3ubuntu1) ...
running python rtupdate hooks for python3.6...
[Errno 2] No such file or directory: '/usr/share/hplip/ui5/devmgr_ext.py'
[Errno 2] No such file or directory: '/usr/share/hplip/ui5/printsettings_base.py'
[Errno 2] No such file or directory: '/usr/share/hplip/ui5/setupdialog_base5.py'
error running python rtupdate hook hplip-data
dpkg: erro ao processar o pacote python3 (--configure):
installed python3 package post-installation script subprocess returned error exit status 4
Foram encontrados erros enquanto processava:
python3
E: Sub-process /usr/bin/dpkg returned an error code (1)
Falhou a instalação de um pacote. A tentar recuperar:
A instalar python3 (3.6.5-3ubuntu1) ...
running python rtupdate hooks for python3.6...
[Errno 2] No such file or directory: '/usr/share/hplip/ui5/devmgr_ext.py'
[Errno 2] No such file or directory: '/usr/share/hplip/ui5/printsettings_base.py'
[Errno 2] No such file or directory: '/usr/share/hplip/ui5/setupdialog_base5.py'
error running python rtupdate hook hplip-data
dpkg: erro ao processar o pacote python3 (--configure):
installed python3 package post-installation script subprocess returned error exit status 4
dpkg: problemas com dependências impedem a configuração de python3-dev:
python3-dev depende de python3 (= 3.6.5-3ubuntu1); no entanto:
O pacote python3 ainda não está configurado.

dpkg: erro ao processar o pacote python3-dev (--configure):
problemas com dependências - a deixar por configurar
Foram encontrados erros enquanto processava:
python3
python3-dev
erlindur

Re: MInt 19: python3 upgrade messed up. Update manager blocked.

Post by erlindur »

Same problem here.

I think that the problem is that I installed hplip trying to install my printer with a script I got from the official HP site. The script installed hplip-3.18.6 in my Downloads folder and the ui5 folder is there.
User avatar
smurphos
Level 18
Level 18
Posts: 8501
Joined: Fri Sep 05, 2014 12:18 am
Location: Irish Brit in Portugal
Contact:

Re: MInt 19: python3 upgrade messed up. Update manager blocked.

Post by smurphos »

Getting there, but not quite

Try installing from the cached downloads.
sudo dpkg -i /var/cache/apt/archives/*.deb
Tries to fix configuration issues.
sudo dpkg --configure -a

if that doesn't work I've attached a zip file with the 3 missing files from /usr/share/hplip/ui5 - you could try putting them in the folder - you'll need to have root and see if sudo /usr/bin/apt update finishes the installation.

Are both of your machines upgrades from 18.3? I've just checked an 18.3 installation and the folder is called ui4 there. I wonder if the underlying bug is with HPLIP and the upgrade from 18.3 to 19?
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.
gm10

Re: MInt 19: python3 upgrade messed up. Update manager blocked.

Post by gm10 »

smurphos wrote: Thu Jul 12, 2018 8:59 am Try

apt install --reinstall hplip hplip-data

followed by

apt install --reinstall python3
I'm late to the thread and I didn't really read after the above but didn't see it mentioned, sorry if it was:

apt is a python3 script. It's a wrapper for the actual binaries. So if python3 is broken you don't get to use that. ;) You must use apt-get instead:

sudo apt-get install --reinstall python3
ec91066
Level 1
Level 1
Posts: 35
Joined: Wed Mar 26, 2014 7:14 pm

Re: MInt 19: python3 upgrade messed up. Update manager blocked.

Post by ec91066 »

yes, this is an upgrade from Mint 18.3

I had to reinstall hplip after the upgrade in order to print.

If it wasn't this update for python3, Mint 19 was running perfect.
User avatar
smurphos
Level 18
Level 18
Posts: 8501
Joined: Fri Sep 05, 2014 12:18 am
Location: Irish Brit in Portugal
Contact:

Re: MInt 19: python3 upgrade messed up. Update manager blocked.

Post by smurphos »

gm10 wrote: Thu Jul 12, 2018 10:47 am I'm late to the thread
Your input is welcome gm10 - I'm clutching at straws :) . That did cross my mind, but it does seem python is still OK, just dpkg is stuck on the failed update of python3.
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.
ec91066
Level 1
Level 1
Posts: 35
Joined: Wed Mar 26, 2014 7:14 pm

Re: MInt 19: python3 upgrade messed up. Update manager blocked.

Post by ec91066 »

Almost there... one error left


A instalar python3 (3.6.5-3ubuntu1) ...
running python rtupdate hooks for python3.6...
[Errno 2] No such file or directory: '/usr/share/hplip/ui5/setupdialog_base5.py'
error running python rtupdate hook hplip-data
dpkg: erro ao processar o pacote python3 (--configure):
installed python3 package post-installation script subprocess returned error exit status 4
Foram encontrados erros enquanto processava:
python3
E: Sub-process /usr/bin/dpkg returned an error code (1)
gm10

Re: MInt 19: python3 upgrade messed up. Update manager blocked.

Post by gm10 »

smurphos wrote: Thu Jul 12, 2018 10:56 am I'm clutching at straws :) . That did cross my mind, but it does seem python is still OK, just dpkg is stuck on the failed update of python3.
Well, have him try apt-get, anyway. Also to remove that hplib thing. It can be removed for sure since I don't have it on my system.

Anyway, I don't really want to get involved further. The above is the reason why I never do distro upgrades. :P
Grubbie

Re: MInt 19: python3 upgrade messed up. Update manager blocked.

Post by Grubbie »

smurphos wrote: Thu Jul 12, 2018 10:41 am
Try installing from the cached downloads.
sudo dpkg -i /var/cache/apt/archives/*.deb
Flawless. Thank you kindly.
ec91066
Level 1
Level 1
Posts: 35
Joined: Wed Mar 26, 2014 7:14 pm

Re: MInt 19: python3 upgrade messed up. Update manager blocked.

Post by ec91066 »

gm10:

Yes, better a clean install than a upgrade :)
User avatar
smurphos
Level 18
Level 18
Posts: 8501
Joined: Fri Sep 05, 2014 12:18 am
Location: Irish Brit in Portugal
Contact:

Re: MInt 19: python3 upgrade messed up. Update manager blocked.

Post by smurphos »

ec91066 wrote: Thu Jul 12, 2018 11:04 am Almost there... one error left
[Errno 2] No such file or directory: '/usr/share/hplip/ui5/setupdialog_base5.py'
code (1)
Here is that file if you need it...
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.
ec91066
Level 1
Level 1
Posts: 35
Joined: Wed Mar 26, 2014 7:14 pm

Re: MInt 19: python3 upgrade messed up. Update manager blocked.

Post by ec91066 »

Meanwhile i managed to do

sudo dpkg -i /var/cache/apt/archives/*.deb

Am I doing a downgrade ?
User avatar
smurphos
Level 18
Level 18
Posts: 8501
Joined: Fri Sep 05, 2014 12:18 am
Location: Irish Brit in Portugal
Contact:

Re: MInt 19: python3 upgrade messed up. Update manager blocked.

Post by smurphos »

Nope, it's just installing from the cache of debs already downloaded by the update manager.
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.
soxs
Level 1
Level 1
Posts: 12
Joined: Sat Apr 22, 2017 3:13 am

Re: MInt 19: python3 upgrade messed up. Update manager blocked.

Post by soxs »

same problem here with fresh install. I have ui4 folder not ui5 on hplip directory.

EDIT

I have create a ui5 folder inside /usr/share/hplip and i copy the files from ui4 inside. everything runs smoothly now, and updates work again.
User avatar
smurphos
Level 18
Level 18
Posts: 8501
Joined: Fri Sep 05, 2014 12:18 am
Location: Irish Brit in Portugal
Contact:

Re: MInt 19: python3 upgrade messed up. Update manager blocked.

Post by smurphos »

soxs wrote: Thu Jul 12, 2018 11:44 am same problem here with fresh install. I have ui4 folder not ui5 on hplip directory.
Fresh install of 19? It's very weird.

On all my fresh installs ui5 folder is present and correct. I've tried purging hplip-data and reinstalling from the repo it to see if there is some fault in the package but it reinstalled with the ui5 folder present and correct.

The only system with a ui4 folder is on 18.3 still.
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.
soxs
Level 1
Level 1
Posts: 12
Joined: Sat Apr 22, 2017 3:13 am

Re: MInt 19: python3 upgrade messed up. Update manager blocked.

Post by soxs »

Fresh install of 19 (mate) yes but i had installed hplip from hp's site. During the installation, hplip had remove the build-in driver before re-installed, maybe then the problem created.
gm10

Re: MInt 19: python3 upgrade messed up. Update manager blocked.

Post by gm10 »

soxs wrote: Thu Jul 12, 2018 12:51 pm Fresh install of 19 (mate) yes but i had installed hplip from hp's site. During the installation, hplip had remove the build-in driver before re-installed, maybe then the problem created.
self-made problem. Don't lead with "fresh install" but "I installed binaries found on the Internet and it broke my system". We wouldn't have been surprised then. ;)
User avatar
smurphos
Level 18
Level 18
Posts: 8501
Joined: Fri Sep 05, 2014 12:18 am
Location: Irish Brit in Portugal
Contact:

Re: MInt 19: python3 upgrade messed up. Update manager blocked.

Post by smurphos »

soxs wrote: Thu Jul 12, 2018 12:51 pm Fresh install of 19 (mate) yes but i had installed hplip from hp's site. During the installation, hplip had remove the build-in driver before re-installed, maybe then the problem created.
The installer script direct from HP gives this warning in red before asking if you want to proceed. Clearly a bad idea to ignore it.
error: linuxmint-19 version is not supported, so all dependencies may not be installed. However trying to install using linuxmint-18.3 version packages.
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.
User avatar
externa1
Level 2
Level 2
Posts: 51
Joined: Fri Mar 23, 2018 11:45 am

Re: MInt 19: python3 upgrade messed up. Update manager blocked.

Post by externa1 »

soxs wrote: Thu Jul 12, 2018 12:51 pm Fresh install of 19 (mate) yes but i had installed hplip from hp's site. During the installation, hplip had remove the build-in driver before re-installed, maybe then the problem created.
Hi, I did this on 2 of my machines - and got the same problem, solved by removing the downloaded hplip install and installed hplip-gui and hpijs-ppds through synaptic package manager as i needed the scanner plugin for my MFP to be able to scan

rg
Christian
Locked

Return to “Other topics”