Bonjour, s'il vous plait qui peut m'aider sur Ubuntu qui me fatigue avec ses erreurs :
il ne veut pas faire ni update ni upgrade suite à une erreur :
[code]Traceback (most recent call last):
File "/usr/lib/cnf-update-db", line 8, in <module>
from CommandNotFound.db.creator import DbCreator
File "/usr/lib/python3/dist-packages/CommandNotFound/db/creator.py", line 4, in <module>
import json
ModuleNotFoundError: No module named 'json'
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 63, in apport_excepthook
from apport.fileutils import likely_packaged, get_recent_crashes
File "/usr/lib/python3/dist-packages/apport/__init__.py", line 5, in <module>
from apport.report import Report
File "/usr/lib/python3/dist-packages/apport/report.py", line 15, in <module>
import xml.dom, xml.dom.minidom
ModuleNotFoundError: No module named 'xml'
Original exception was:
Traceback (most recent call last):
File "/usr/lib/cnf-update-db", line 8, in <module>
from CommandNotFound.db.creator import DbCreator
File "/usr/lib/python3/dist-packages/CommandNotFound/db/creator.py", line 4, in <module>
import json
ModuleNotFoundError: No module named 'json'
E: Problem executing scripts APT::Update:😛ost-Invoke-Success 'if /usr/bin/test -w /var/lib/command-not-found/ -a -e /usr/lib/cnf-update-db; then /usr/lib/cnf-update-db > /dev/null; fi'
E: Sub-process returned an error code[/*]
[/list]
Je vous donne le résultat de ses commandes qui pourront vous aider à comprendre le problème, j'espère:
[*]uname -a
Linux boujemaa-Lenovo-ideapad-320-15IKB 5.3.0-40-generic #32~18.04.1-Ubuntu SMP Mon Feb 3 14:05:59 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
df -Th | grep -Ev "devpts|none|proc|sys|tmpfs|udev"; echo ; df -Ti | grep -Ev "devpts|none|proc|sys|tmpfs|udev"
Sys. de fichiers Type Taille Utilisé Dispo Uti% Monté sur
/dev/sda2 ext4 296G 28G 254G 10% /
/dev/loop1 squashfs 92M 92M 0 100% /snap/core/8689
/dev/loop2 squashfs 55M 55M 0 100% /snap/core18/1668
/dev/loop4 squashfs 63M 63M 0 100% /snap/gtk-common-themes/1506
/dev/loop5 squashfs 97M 97M 0 100% /snap/core/9804
/dev/loop3 squashfs 218M 218M 0 100% /snap/gnome-3-34-1804/60
/dev/loop6 squashfs 56M 56M 0 100% /snap/core18/1885
/dev/sda1 vfat 511M 40M 472M 8% /boot/efi
Sys. de fichiers Type Inœuds IUtil. ILibre IUti% Monté sur
/dev/sda2 ext4 19775488 316069 19459419 2% /
/dev/loop1 squashfs 12847 12847 0 100% /snap/core/8689
/dev/loop2 squashfs 10095 10095 0 100% /snap/core18/1668
/dev/loop4 squashfs 62342 62342 0 100% /snap/gtk-common-themes/1506
/dev/loop5 squashfs 12796 12796 0 100% /snap/core/9804
/dev/loop3 squashfs 18513 18513 0 100% /snap/gnome-3-34-1804/60
/dev/loop6 squashfs 10775 10775 0 100% /snap/core18/1885
/dev/sda1 vfat 0 0 0 - /boot/efi
dpkg -l | grep -Ei "linux-(g|h|i|lo|si|t)"
ii binutils-x86-64-linux-gnu 2.30-21ubuntu1~18.04.2 amd64 GNU binary utilities, for x86-64-linux-gnu target
ii linux-generic-hwe-18.04 5.3.0.40.97 amd64 Complete Generic Linux kernel and headers
ii linux-headers-5.3.0-28 5.3.0-28.30~18.04.1 all Header files related to Linux kernel version 5.3.0
ii linux-headers-5.3.0-28-generic 5.3.0-28.30~18.04.1 amd64 Linux kernel headers for version 5.3.0 on 64 bit x86 SMP
ii linux-headers-5.3.0-40 5.3.0-40.32~18.04.1 all Header files related to Linux kernel version 5.3.0
ii linux-headers-5.3.0-40-generic 5.3.0-40.32~18.04.1 amd64 Linux kernel headers for version 5.3.0 on 64 bit x86 SMP
ii linux-headers-generic-hwe-18.04 5.3.0.40.97 amd64 Generic Linux kernel headers
rc linux-image-5.0.0-23-generic 5.0.0-23.24~18.04.1 amd64 Signed kernel image generic
rc linux-image-5.0.0-32-generic 5.0.0-32.34~18.04.2 amd64 Signed kernel image generic
rc linux-image-5.0.0-36-generic 5.0.0-36.39~18.04.1 amd64 Signed kernel image generic
rc linux-image-5.0.0-37-generic 5.0.0-37.40~18.04.1 amd64 Signed kernel image generic
rc linux-image-5.3.0-26-generic 5.3.0-26.28~18.04.1 amd64 Signed kernel image generic
ii linux-image-5.3.0-28-generic 5.3.0-28.30~18.04.1 amd64 Signed kernel image generic
ii linux-image-5.3.0-40-generic 5.3.0-40.32~18.04.1 amd64 Signed kernel image generic
ii linux-image-generic-hwe-18.04 5.3.0.40.97 amd64 Generic Linux kernel image
ii linux-signed-generic-hwe-18.04 5.3.0.40.97 amd64 Complete Signed Generic Linux kernel and headers (dummy transitional package)
[/*]
Merci infiniment,[/code]