dpkg - Can not update Python and other software - Ask Ubuntu


i updating python , can not through. systems suggest using sudo apt-get -f install, however, not work either. how can solve issue?

$sudo apt-get -f install reading package lists... done building dependency tree       reading state information... done correcting dependencies... done following additional packages installed:   python3-update-manager update-manager following packages upgraded:   python3-update-manager update-manager 2 upgraded, 0 newly installed, 0 remove , 59 not upgraded. 11 not installed or removed. need 0 b/574 kb of archives. after operation, 0 b of additional disk space used. want continue? [y/n] y (reading database ... 405655 files , directories installed.) preparing unpack .../python3-update-manager_1%3a16.04.4_all.deb ... /var/lib/dpkg/info/python3-update-manager.prerm: 6: /var/lib/dpkg/info/python3-update-manager.prerm: py3clean: not found dpkg: warning: subprocess old pre-removal script returned error exit status 127 dpkg: trying script new package instead ... /var/lib/dpkg/tmp.ci/prerm: 6: /var/lib/dpkg/tmp.ci/prerm: py3clean: not found dpkg: error processing archive /var/cache/apt/archives/python3-update-manager_1%3a16.04.4_all.deb (--unpack):  subprocess new pre-removal script returned error exit status 127 /var/lib/dpkg/info/python3-update-manager.postinst: 6: /var/lib/dpkg/info/python3-update-manager.postinst: py3compile: not found dpkg: error while cleaning up:  subprocess installed post-installation script returned error exit status 127 preparing unpack .../update-manager_1%3a16.04.4_all.deb ... /var/lib/dpkg/info/update-manager.prerm: 6: /var/lib/dpkg/info/update-manager.prerm: py3clean: not found dpkg: warning: subprocess old pre-removal script returned error exit status 127 dpkg: trying script new package instead ... /var/lib/dpkg/tmp.ci/prerm: 6: /var/lib/dpkg/tmp.ci/prerm: py3clean: not found dpkg: error processing archive /var/cache/apt/archives/update-manager_1%3a16.04.4_all.deb (--unpack):  subprocess new pre-removal script returned error exit status 127 /var/lib/dpkg/info/update-manager.postinst: 6: /var/lib/dpkg/info/update-manager.postinst: py3compile: not found dpkg: error while cleaning up:  subprocess installed post-installation script returned error exit status 127 errors encountered while processing:  /var/cache/apt/archives/python3-update-manager_1%3a16.04.4_all.deb  /var/cache/apt/archives/update-manager_1%3a16.04.4_all.deb e: sub-process /usr/bin/dpkg returned error code (1) 

be sure update repositories, system files. perform reinstall of python3.

(the $ represents command prompt see in terminal screen. command follows $ prompt.):

$ sudo apt update $ sudo apt upgrade $ sudo apt install python3-minimal $ sudo apt install --reinstall python3 

then there add of other packages might need repository. can list of default repository packages with:

$ apt-cache search "^python3" | less 

Comments

Popular posts from this blog

download - Firefox cannot save files (most of the time), how to solve? - Super User

windows - "-2146893807 NTE_NOT_FOUND" when repair certificate store - Super User