2017-09-26 10:56 UTC

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0003855Kali Linux[All Projects] Tool Upgradepublic2017-05-16 23:18
Reportermousarr 
Assigned Torhertzog 
PriorityurgentSeveritymajorReproducibilityhave not tried
StatusclosedResolutionwon't fix 
Product Version2016.2 
Target VersionFixed in Version 
Summary0003855: bug with the graphical interface
Descriptionafter trying an update & upgrade, i have no more GUI and this kind of output
idle3 : Depend: python3(>=3.5.3-1) but installed version is 3.5.1-4

python3 : Pre-Depend: python3: python3-minimal(=3.5.1-4) but installed version is 3.5.1-4

try apt --fix-broken install
Attached Files

-Relationships
+Relationships

-Notes

~0006325

rhertzog (administrator)

Those are signs of a non-completed upgrade. Please run "dpkg --configure -a" and "apt update && apt -f install" to fix the situation. If this doesn't work, please share the output of the failing commands.

~0006326

med ben (reporter)

Fixed but still there are an errors about python3.5-minimal and python3-minimal

~0006327

rhertzog (administrator)

Please copy/paste the full output of the failing commands...

~0006328

med ben (reporter)

root@kali:~# dpkg --configure -a
Setting up python3.5-minimal (3.5.3-1) ...
Traceback (most recent call last):
  File "/usr/lib/python3.5/py_compile.py", line 6, in <module>
    import importlib._bootstrap_external
  File "/usr/lib/python3.5/importlib/__init__.py", line 57, in <module>
    import types
  File "/usr/lib/python3.5/types.py", line 166, in <module>
    import functools as _functools
  File "/usr/lib/python3.5/functools.py", line 23, in <module>
    from weakref import WeakKeyDictionary
  File "/usr/lib/python3.5/weakref.py", line 12, in <module>
    from _weakref import (
ImportError: cannot import name '_remove_dead_weakref'
dpkg: error processing package python3.5-minimal (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of python3-minimal:
 python3-minimal depends on python3.5-minimal (>= 3.5.3-1~); however:
  Package python3.5-minimal is not configured yet.

dpkg: error processing package python3-minimal (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python3.5:
 python3.5 depends on python3.5-minimal (= 3.5.3-1); however:
  Package python3.5-minimal is not configured yet.

dpkg: error processing package python3.5 (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 python3.5-minimal
 python3-minimal
 python3.5

~0006329

med ben (reporter)

apt update && apt -f install
Setting up python3.5-minimal (3.5.3-1) ...
Traceback (most recent call last):
  File "/usr/lib/python3.5/py_compile.py", line 6, in <module>
    import importlib._bootstrap_external
  File "/usr/lib/python3.5/importlib/__init__.py", line 57, in <module>
    import types
  File "/usr/lib/python3.5/types.py", line 166, in <module>
    import functools as _functools
  File "/usr/lib/python3.5/functools.py", line 23, in <module>
    from weakref import WeakKeyDictionary
  File "/usr/lib/python3.5/weakref.py", line 12, in <module>
    from _weakref import (
ImportError: cannot import name '_remove_dead_weakref'
dpkg: error processing package python3.5-minimal (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of python3-minimal:
 python3-minimal depends on python3.5-minimal (>= 3.5.3-1~); however:
  Package python3.5-minimal is not configured yet.

dpkg: error processing package python3-minimal (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 python3.5-minimal
 python3-minimal
E: Sub-process /usr/bin/dpkg returned an error code (1)

~0006330

med ben (reporter)

root@kali:~# apt update && apt -f install
Hit:1 http://repo.steampowered.com/steam precise InRelease
Ign:2 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:3 http://dl.google.com/linux/chrome/deb stable Release
Hit:5 http://kali.mirror.garr.it/mirrors/kali kali-rolling InRelease
Ign:4 http://debian.mirror.neology.co.za/debian jessie InRelease
Hit:7 http://debian.mirror.neology.co.za/debian jessie Release
Reading package lists... Done
Building dependency tree
Reading state information... Done
573 packages can be upgraded. Run 'apt list --upgradable' to see them.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  caribou-antler castxml creepy dff espeak-data firebird2.5-common firebird2.5-common-doc gccxml gir1.2-clutter-gst-2.0 gir1.2-gkbd-3.0
  gir1.2-xkl-1.0 gnome-icon-theme-symbolic gnome-packagekit gnome-packagekit-data gtk2-engines gucharmap hardening-includes hwdata
  imagemagick-common inguma iproute libapache2-mod-php5 libappindicator1 libasn1-8-heimdal libavcodec-ffmpeg56 libavdevice-ffmpeg56
  libavfilter-ffmpeg5 libavformat-ffmpeg56 libavresample-ffmpeg2 libavutil-ffmpeg54 libbasicusageenvironment0 libbind9-90 libboost-atomic1.58.0
  libboost-atomic1.61.0 libboost-chrono1.58.0 libboost-chrono1.61.0 libboost-date-time1.58.0 libboost-date-time1.61.0 libboost-filesystem1.58.0
  libboost-filesystem1.61.0 libboost-python1.58.0 libboost-python1.61.0 libboost-python1.62.0 libboost-random1.61.0 libboost-system1.58.0
  libboost-system1.61.0 libboost-thread1.58.0 libboost-thread1.61.0 libcamel-1.2-54 libcamel-1.2-57 libchromaprint0 libclang-common-3.7-dev
  libclutter-gst-2.0-0 libcrypto++6 libcrypto++9v5 libcurses-perl libcurses-ui-perl libdbus-1-dev libdbusmenu-glib4 libdbusmenu-gtk4 libdns100
  libedataserver-1.2-21 libespeak1 libfftw3-single3 libgconf2-4 libgdict-1.0-9 libgeos-3.5.0 libgif4 libglew1.13 libgnome2-0 libgnome2-bin
  libgrilo-0.2-1 libgroupsock1 libgsoap9 libgssapi3-heimdal libgtkglext1 libhcrypto4-heimdal libhdb9-heimdal libheimbase1-heimdal
  libheimntlm0-heimdal libhunspell-1.3-0 libhx509-5-heimdal libical1a libilmbase6v5 libindicator7 libisc95 libisccc90 libisccfg90 libjasper1
  libjpeg9 libkdc2-heimdal libkrb5-26-heimdal liblivemedia23 liblivemedia52 libllvm3.7 liblouis10 liblouis9 liblwres90 libmimic0
  libnamespace-autoclean-perl libnm-glib-vpn1 libntdb1 libonig2 libopencv-contrib2.4v5 libopencv-legacy2.4v5 libopencv-ml2.4v5 libopenexr6v5
  libopenjpeg5 libosinfo-db libperl5.22 libpff1 libpgm-5.1-0 libphonon4 libpng12-0 libpoppler57 libpoppler61 libpostproc-ffmpeg53 libprotobuf9v5
  libpth20 libpython3.4-minimal libpython3.4-stdlib libqdbm14 libqmi-glib1 libquvi-scripts libquvi7 libradare2-0.10.5 libradare2-0.10.6
  libradare2-0.9.9 libradare2-1.0 libregfi0 libroken18-heimdal libschroedinger-1.0-0 libsodium13 libswresample-ffmpeg1 libswscale-ffmpeg3
  libtask-weaken-perl libtcltk-ruby libtorrent-rasterbar8 libtre5 libtrio2 libusageenvironment1 libusbmuxd2 libvncclient1 libvpx3 libvte-common
  libvte9 libwebp5 libwebpdemux1 libwebpmux1 libwebrtc-audio-processing-0 libwildmidi1 libwind0-heimdal libwireshark6 libwiretap5 libwsutil6
  libx265-68 libx265-79 libx265-87 libxcb-composite0 libzip2 libzmq3 linux-headers-4.6.0-kali1-amd64 linux-headers-4.6.0-kali1-common
  linux-headers-4.7.0-kali1-amd64 linux-headers-4.7.0-kali1-common linux-image-4.3.0-kali1-amd64 linux-image-4.6.0-kali1-amd64
  linux-image-4.7.0-kali1-amd64 linux-kbuild-4.6 linux-kbuild-4.7 multiforcer phonon phonon-backend-vlc php5 php5-cli php5-common php5-json
  php5-mysql php5-readline python-apsw python-bluez python-brotli python-characteristic python-clamd python-ctypeslib python-d2to1 python-dbus-dev
  python-defusedxml python-distlib python-dominate python-ecdsa python-flickrapi python-googleapi python-instagram python-ipaddr python-jwt
  python-lzma python-lzo python-magic python-ntdb python-oauth2client python-oauthlib python-opengl python-pyatspi python-pycryptopp python-pyexiv2
  python-pyexiv2-doc python-pypdf python-pyqtgraph python-pyregfi python-qt4-gl python-qt4-phonon python-requests-oauthlib python-requests-toolbelt
  python-rsa python-soappy python-stopit python-svn python-tidylib python-tweepy python-uritemplate python-vte python-wstools python-yapsy python3.4
  python3.4-minimal ratproxy rcconf ruby-rainbow ruby-rexec ruby2.2-dev system-config-printer sysv-rc-conf vlc-nox
Use 'apt autoremove' to remove them.
The following additional packages will be installed:
  libpython3-stdlib python3
Suggested packages:
  python3-doc python3-tk python3-venv
The following packages will be upgraded:
  libpython3-stdlib python3
2 upgraded, 0 newly installed, 0 to remove and 571 not upgraded.
3 not fully installed or removed.
Need to get 0 B/40.3 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up python3.5-minimal (3.5.3-1) ...
Traceback (most recent call last):
  File "/usr/lib/python3.5/py_compile.py", line 6, in <module>
    import importlib._bootstrap_external
  File "/usr/lib/python3.5/importlib/__init__.py", line 57, in <module>
    import types
  File "/usr/lib/python3.5/types.py", line 166, in <module>
    import functools as _functools
  File "/usr/lib/python3.5/functools.py", line 23, in <module>
    from weakref import WeakKeyDictionary
  File "/usr/lib/python3.5/weakref.py", line 12, in <module>
    from _weakref import (
ImportError: cannot import name '_remove_dead_weakref'
dpkg: error processing package python3.5-minimal (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of python3-minimal:
 python3-minimal depends on python3.5-minimal (>= 3.5.3-1~); however:
  Package python3.5-minimal is not configured yet.

dpkg: error processing package python3-minimal (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 python3.5-minimal
 python3-minimal
E: Sub-process /usr/bin/dpkg returned an error code (1)

~0006331

rhertzog (administrator)

Can you paste the output of this command:
dpkg -l '*python3.5*'

And also try to reinstall a few related packages:
apt install --reinstall libpython3.5:amd64 libpython3.5-minimal:amd64 libpython3.5-stdlib:amd64

~0006332

med ben (reporter)

dpkg -l '*python3.5*'
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
+++-==============-============-============-=================================
ii libpython3.5:a 3.5.3-1 amd64 Shared Python runtime library (ve
ii libpython3.5-m 3.5.3-1 amd64 Minimal subset of the Python lang
ii libpython3.5-s 3.5.3-1 amd64 Interactive high-level object-ori
iU python3.5 3.5.3-1 amd64 Interactive high-level object-ori
un python3.5-apt <none> <none> (no description available)
un python3.5-cups <none> <none> (no description available)
un python3.5-dbus <none> <none> (no description available)
un python3.5-doc <none> <none> (no description available)
iF python3.5-mini 3.5.3-1 amd64 Minimal subset of the Python lang
un python3.5-nump <none> <none> (no description available)
un python3.5-smbc <none> <none> (no description available)
un python3.5-tk <none> <none> (no description available)
un python3.5-venv <none> <none> (no description available)

~0006333

med ben (reporter)

root@kali:~# apt install --reinstall libpython3.5:amd64 libpython3.5-minimal:amd64 libpython3.5-stdlib:amd64
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 python3 : PreDepends: python3-minimal (= 3.5.1-4) but 3.5.3-1 is to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

~0006338

rhertzog (administrator)

Maybe we should use a big haxe then. You can try to force-remove the problematic packages:
dpkg --force-depends -r python3 python3-minimal python3.5:amd64 libpython3.5-minimal:amd64 libpython3.5-stdlib:amd64

And then let apt try to restore the situation:
apt -f install

In any case, there's something broken with your python installation. Was your upgrade stopped with a hard reboot or something like that? This is definitely not reproducible on a fully upgraded system.

~0006638

prary2 (reporter)

dpkg --force-depends -r python3 python3-minimal python3.5:amd64 libpython3.5-
minimal:amd64 libpython3.5-stdlib:amd64

apt -f install

On trying last step, I am getting following error;


Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  bijiben dns-root-data dnsmasq-base espeak-data gdebi-core gnome-nettool gnome-shell-extension-weather hwdata imagemagick-common
  libavcodec-ffmpeg56 libavfilter-ffmpeg5 libavformat-ffmpeg56 libavresample-ffmpeg2 libavutil-ffmpeg54 libbluray1 libboost-date-time1.61.0
  libboost-filesystem1.61.0 libboost-iostreams1.61.0 libboost-log1.61.0 libboost-program-options1.61.0 libboost-regex1.61.0
  libboost-serialization1.61.0 libboost-thread1.61.0 libchromaprint0 libefivar0 libespeak1 libfwup0 libglew1.13 libgnome-autoar-common libhdf5-10
  libjson-c3:i386 libkadm5clnt-mit10 libkadm5srv-mit10 liblircclient0 liblivemedia52 libllvm3.8 libllvm3.8:i386 liblouis10 libmimic0 libmircommon6
  libmirplatform13 libmirserver41 libopenjpeg5 liborcus-0.11-0 libosinfo-db libpam-cgfs libpay2 libperl5.22 libpoppler61 libpostproc-ffmpeg53
  libraw15 libreoffice-style-human libschroedinger-1.0-0 libsofia-sip-ua-glib3 libsofia-sip-ua0 libswresample-ffmpeg1 libswscale-ffmpeg3
  libubuntu-app-launch3 libvpx3 libwebp5 libx265-79 libx86-1 libxapian-1.3-5 libxcb-composite0 libxcb-xf86dri0 linux-headers-4.8.0-44
  linux-headers-4.8.0-44-generic linux-headers-4.8.0-47 linux-headers-4.8.0-47-generic linux-image-4.4.0-70-generic linux-image-4.8.0-44-generic
  linux-image-4.8.0-47-generic linux-image-extra-4.4.0-70-generic linux-image-extra-4.8.0-44-generic linux-image-extra-4.8.0-47-generic lp-solve
  mir-platform-graphics-mesa-kms10 mir-platform-graphics-mesa-x10 mir-platform-input-evdev5 oxygen5-icon-theme pay-service pay-ui perl-modules-5.22
  pm-utils qtdeclarative5-ubuntu-web-plugin system-config-printer-gnome telepathy-rakia ubuntu-push-client vbetool vlc-nox
Use 'apt autoremove' to remove them.
The following additional packages will be installed:
  libpython3.5-minimal libpython3.5-stdlib python3 python3-minimal python3.5
Suggested packages:
  python3-doc python3-venv python3.5-venv python3.5-doc
The following NEW packages will be installed:
  libpython3.5-minimal libpython3.5-stdlib python3-minimal python3.5
The following packages will be upgraded:
  python3
1 upgraded, 4 newly installed, 0 to remove and 1 not upgraded.
12 not fully installed or removed.
Need to get 0 B/2,901 kB of archives.
After this operation, 14.4 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Selecting previously unselected package libpython3.5-minimal:amd64.
(Reading database ... 592092 files and directories currently installed.)
Preparing to unpack .../libpython3.5-minimal_3.5.3-1_amd64.deb ...
Unpacking libpython3.5-minimal:amd64 (3.5.3-1) ...
Selecting previously unselected package python3-minimal.
Preparing to unpack .../python3-minimal_3.5.3-1_amd64.deb ...
Unpacking python3-minimal (3.5.3-1) ...
Setting up libpython3.5-minimal:amd64 (3.5.3-1) ...
Setting up python3.5-minimal (3.5.3-1) ...
Traceback (most recent call last):
  File "/usr/lib/python3.5/py_compile.py", line 6, in <module>
    import importlib._bootstrap_external
  File "/usr/lib/python3.5/importlib/__init__.py", line 57, in <module>
    import types
  File "/usr/lib/python3.5/types.py", line 166, in <module>
    import functools as _functools
  File "/usr/lib/python3.5/functools.py", line 23, in <module>
    from weakref import WeakKeyDictionary
  File "/usr/lib/python3.5/weakref.py", line 12, in <module>
    from _weakref import (
ImportError: cannot import name '_remove_dead_weakref'
dpkg: error processing package python3.5-minimal (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of python3-minimal:
 python3-minimal depends on python3.5-minimal (>= 3.5.3-1~); however:
  Package python3.5-minimal is not configured yet.

dpkg: error processing package python3-minimal (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          Errors were encountered while processing:
 python3.5-minimal
 python3-minimal
E: Sub-process /usr/bin/dpkg returned an error code (1)

~0006703

rhertzog (administrator)

I don't see any way forward, I'm closing the ticket as it's unlikely to ever result in an improvement.
+Notes

-Issue History
Date Modified Username Field Change
2017-01-31 20:02 mousarr New Issue
2017-02-04 09:53 med ben Note Added: 0006311
2017-02-04 20:48 med ben Note Added: 0006314
2017-02-05 19:36 med ben Note Added: 0006318
2017-02-05 21:57 mousarr Note Added: 0006319
2017-02-06 10:33 muts Note Deleted: 0006319
2017-02-06 10:33 muts Note Deleted: 0006318
2017-02-06 10:33 muts Note Deleted: 0006314
2017-02-06 10:33 muts Note Deleted: 0006311
2017-02-06 13:10 rhertzog Note Added: 0006325
2017-02-06 13:10 rhertzog Assigned To => rhertzog
2017-02-06 13:10 rhertzog Status new => feedback
2017-02-06 14:08 med ben Note Added: 0006326
2017-02-06 14:16 rhertzog Note Added: 0006327
2017-02-06 14:29 med ben Note Added: 0006328
2017-02-06 14:32 med ben Note Added: 0006329
2017-02-06 14:33 med ben Note Added: 0006330
2017-02-06 14:55 rhertzog Note Added: 0006331
2017-02-06 15:10 med ben Note Added: 0006332
2017-02-06 15:11 med ben Note Added: 0006333
2017-02-07 14:25 rhertzog Note Added: 0006338
2017-05-07 08:34 prary2 Note Added: 0006638
2017-05-16 23:18 rhertzog Status feedback => closed
2017-05-16 23:18 rhertzog Resolution open => won't fix
2017-05-16 23:18 rhertzog Note Added: 0006703
+Issue History