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.

#26 Le 29/11/2023, à 01:19

net_thibault

Re : Problème Python après réinstall Ubuntu 20.04

Merci beaucoup pour ces explications

Hors ligne

#27 Le 29/11/2023, à 10:05

iznobe

Re : Problème Python après réinstall Ubuntu 20.04

Bonjour , pour python , ( faut que je retrouve la commande ) , mais lorsque plusieurs installs sont presentes on peut choisir celle qu ' on veut utiliser .

montre :

ls -l /usr/bin/python*

et

alias | grep  python
sudo update-alternatives --config python

HS : Voilà pourquoi il est preferable de ne pas conserver le /home , mais plutot les données utilisateurs qu ' il contient uniquement , car dans le /home il y a aussi des données système qui peuvent aboutir a ce genre de bug ...
Une autre solution serait donc de transferer tes données sur une autre partition ( ou disque ) , puis de refaire une install propre et de reimporter les données si besoin .
si c ' est dans une autre partition ( ou disque ) dans le même ordinateur , on peut tres bien faire des liens , ca evite de reimporter les données et ca isole les données , en cas de reinstall il suffit de creer de nouveaux liens et les données restent à l' abri .

Dernière modification par iznobe (Le 29/11/2023, à 10:40)


retour COMPLET et utilisable de commande
MSI Z490A-pro , i7 10700 , 32 GB RAM .

Hors ligne

#28 Le 29/11/2023, à 13:44

net_thibault

Re : Problème Python après réinstall Ubuntu 20.04

OK, merci

Hors ligne

#29 Le 29/11/2023, à 14:42

iznobe

Re : Problème Python après réinstall Ubuntu 20.04

pas de retour à nous montrer comme demandé dans mon precedent message ?


retour COMPLET et utilisable de commande
MSI Z490A-pro , i7 10700 , 32 GB RAM .

Hors ligne

#30 Le 29/11/2023, à 23:12

net_thibault

Re : Problème Python après réinstall Ubuntu 20.04

Bonsoir quelques news

J'ai refais l'install ce soir, je n'ai pas coché formaté et j'ai un doute si j'ai demandé le montage de '/' dans la partition sda7
(je pense que oui car au final ça boote en ubuntu 20.04 ça serait impossible sinon je pense).

Ce que j'ai changé c'est ce dont on discutait avec geole, j'ai laissé mettre le boot dans SDA, mais sans cocher reformatter.

Bon le résultat est étonnant :
ça boot bien mais j'ai perdu toutes mes données et là python est au bon endroit :

thibault@R2D2laptop:~$ which python3
/usr/bin/python3
thibault@R2D2laptop:~$ pip list

La commande « pip » n'a pas été trouvée, mais peut être installée avec :

sudo apt install python3-pip

thibault@R2D2laptop:~$ pip3 list

La commande « pip3 » n'a pas été trouvée, mais peut être installée avec :

sudo apt install python3-pip

thibault@R2D2laptop:~$ which openssl
/usr/bin/openssl
thibault@R2D2laptop:~$ python3
Python 3.8.10 (default, Nov 14 2022, 12:59:47) 
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>

voilà je ne suis aps allé plus loin ce soir.
J'ai juste testé que je pouvait toujours booter en windows 7 aussi

j'ai juste fait un boot-info pour checker cette histoire de '/' et voilà ce que j'ai :

boot-info-4ppa203                                              [20231129_2138]

============================== Boot Info Summary ===============================

 => No boot loader is installed in the MBR of /dev/mmcblk0.
 => Grub2 (v2.00) is installed in the MBR of /dev/sda and looks at sector 1 of 
    the same hard drive for core.img. core.img is at this location and looks 
    for (,msdos7)/boot/grub. It also embeds following components:
    
    modules
    ---------------------------------------------------------------------------
    fshelp ext2 part_msdos biosdisk
    ---------------------------------------------------------------------------

mmcblk0p1: _____________________________________________________________________

    File system:       exfat
    Boot sector type:  Unknown
    Boot sector info: 
    Operating System:  
    Boot files:        

sda1: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows 8/10/11/2012: NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        /bootmgr /Boot/BCD

sda2: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows 8/10/11/2012: NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  Windows 7
    Boot files:        /bootmgr /Boot/BCD /Windows/System32/winload.exe

sda3: __________________________________________________________________________

    File system:       Extended Partition
    Boot sector type:  -
    Boot sector info: 

sda5: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows 7/2008: NTFS
    Boot sector info:  According to the info in the boot sector, sda5 starts 
                       at sector 2048.
    Operating System:  
    Boot files:        

sda6: __________________________________________________________________________

    File system:       swap
    Boot sector type:  -
    Boot sector info: 

sda7: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  Ubuntu 20.04.6 LTS
    Boot files:        /boot/grub/grub.cfg /etc/fstab /etc/default/grub 
                       /boot/grub/i386-pc/core.img

sda4: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows 8/10/11/2012: NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        /BOOTMGR /BOOT/BCD


================================ 4 OS detected =================================

OS#1:   Windows 7 (boot) on sda1
OS#2:   Windows 7 on sda2
OS#3:   Windows Recovery Environment (boot) on sda4
OS#4:   Ubuntu 20.04.6 LTS on sda7

================================ Host/Hardware =================================

CPU architecture: 64-bit
Video: HD Graphics 5500 from Intel Corporation
Live-session OS is Ubuntu 64-bit (Ubuntu 20.04.6 LTS, focal, x86_64)

===================================== UEFI =====================================

BIOS/UEFI firmware: Version 2.10  (2.10) from TOSHIBA
This live-session is in Legacy/BIOS/CSM mode (not in EFI mode).



============================= Drive/Partition Info =============================

Disks info: ____________________________________________________________________

sda	: notGPT,	no-BIOSboot,	has-noESP, 	not-usb,	not-mmc, has-os,	has-win,	2048 sectors * 512 bytes

Partitions info (1/3): _________________________________________________________

sda1	: is-os,	64, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	not-far
sda2	: is-os,	64, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	not-far
sda4	: is-os,	64, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	farbios
sda5	: no-os,	64, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	farbios
sda7	: is-os,	64, apt-get,	grub-pc ,	grub2,	grub-install,	grubenv-ok,	update-grub,	farbios

Partitions info (2/3): _________________________________________________________

sda1	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	bootmgr,	is-winboot
sda2	: isnotESP,	part-has-no-fstab,	no-nt,	haswinload,	no-recov-nor-hid,	bootmgr,	is-winboot
sda4	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	recovery-or-hidden,	BOOTMGR,	is-winboot
sda5	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sda7	: isnotESP,	fstab-without-efi,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot

Partitions info (3/3): _________________________________________________________

sda1	: not--sepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	sda
sda2	: not--sepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	sda
sda4	: not--sepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	sda
sda5	: not--sepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	sda
sda7	: not--sepboot,	with-boot,	fstab-without-boot,	not-sep-usr,	with--usr,	fstab-without-usr,	std-grub.d,	sda

fdisk -l (filtered): ___________________________________________________________

Disk sda: 238.49 GiB, 256060514304 bytes, 500118192 sectors
Disk identifier: 0x951e0459
      Boot     Start       End   Sectors  Size Id Type
sda1  *         2048   3074047   3072000  1.5G 27 Hidden NTFS WinRE
sda2         3074048 191985663 188911616 90.1G  7 HPFS/NTFS/exFAT
sda3       191987710 477158971 285171262  136G  f W95 Ext'd (LBA)
sda4       477159424 500115455  22956032   11G 17 Hidden HPFS/NTFS
sda5       191987712 342941695 150953984   72G  7 HPFS/NTFS/exFAT
sda6       342943744 352942079   9998336  4.8G 82 Linux swap / Solaris
sda7       352944128 477158971 124214844 59.2G 83 Linux
Partition table entries are not in disk order.
Disk mmcblk0: 477.51 GiB, 512711720960 bytes, 1001390080 sectors
Disk identifier: 0x00000000
          Boot Start        End    Sectors   Size Id Type
mmcblk0p1      65536 1001390079 1001324544 477.5G  7 HPFS/NTFS/exFAT

parted -lm (filtered): _________________________________________________________

sda:256GB:scsi:512:512:msdos:ATA TOSHIBA THNSNJ25:;
1:1049kB:1574MB:1573MB:ntfs::boot, msftres;
2:1574MB:98.3GB:96.7GB:ntfs::;
3:98.3GB:244GB:146GB:::lba;
5:98.3GB:176GB:77.3GB:ntfs::;
6:176GB:181GB:5119MB:linux-swap(v1)::;
7:181GB:244GB:63.6GB:ext4::;
4:244GB:256GB:11.8GB:ntfs::hidden;

Free space >10MiB: ______________________________________________________________

mmcblk0: 0.00MiB:32.0MiB:32.0MiB

blkid (filtered): ______________________________________________________________

NAME        FSTYPE   UUID                                 PARTUUID                             LABEL                    PARTLABEL
sda                                                                                                                     
├─sda1      ntfs     AC8A49478A490EF0                     951e0459-01                          System                   
├─sda2      ntfs     22C4533AC4530F81                     951e0459-02                          TI31447000A              
├─sda3                                                    951e0459-03                                                   
├─sda4      ntfs     4C0458B004589F30                     951e0459-04                          HDDRECOVERY              
├─sda5      ntfs     3440075F400726E8                     951e0459-05                          Donnees                  
├─sda6      swap     74858016-39f6-455e-a523-cf74d790419b 951e0459-06                                                   
└─sda7      ext4     bf43b229-4632-4cc2-982e-e1d605a51b12 951e0459-07                                                   
mmcblk0                                                                                                                 
└─mmcblk0p1 exfat    9C33-6BBD                                                                                          

Mount points (filtered): _______________________________________________________

                        Avail Use% Mounted on
/dev/mmcblk0p1         321.1G  33% /media/ubuntu/9C33-6BBD
/dev/sda1                1.2G  19% /mnt/boot-sav/sda1
/dev/sda2               39.1G  57% /mnt/boot-sav/sda2
/dev/sda4              647.5M  94% /mnt/boot-sav/sda4
/dev/sda5               38.8G  46% /mnt/boot-sav/sda5
/dev/sda7               47.2G  13% /mnt/boot-sav/sda7

Mount options (filtered): ______________________________________________________


====================== sda7/boot/grub/grub.cfg (filtered) ======================

Ubuntu   bf43b229-4632-4cc2-982e-e1d605a51b12
Ubuntu, avec Linux 5.15.0-89-generic   bf43b229-4632-4cc2-982e-e1d605a51b12
Ubuntu, avec Linux 5.15.0-67-generic   bf43b229-4632-4cc2-982e-e1d605a51b12
Windows 7 (sur sda1)   AC8A49478A490EF0
Windows 7 (sur sda2)   22C4533AC4530F81
Windows Recovery Environment (sur sda4)   4C0458B004589F30
### END /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_uefi-firmware ###

========================== sda7/etc/fstab (filtered) ===========================

# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda7 during installation
UUID=bf43b229-4632-4cc2-982e-e1d605a51b12 /               ext4    errors=remount-ro 0       1
# swap was on /dev/sda6 during installation
UUID=74858016-39f6-455e-a523-cf74d790419b none            swap    sw              0       0

======================= sda7/etc/default/grub (filtered) =======================

GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""

==================== sda7: Location of files loaded by Grub ====================

           GiB - GB             File                                 Fragment(s)
 172,689426422 = 185,423859712  boot/grub/grub.cfg                             1
 207,068073273 = 222,337650688  boot/grub/i386-pc/core.img                     1
 201,479476929 = 216,336941056  boot/vmlinuz                                   1
 207,765621185 = 223,086637056  boot/vmlinuz-5.15.0-67-generic                 2
 201,479476929 = 216,336941056  boot/vmlinuz-5.15.0-89-generic                 1
 207,765621185 = 223,086637056  boot/vmlinuz.old                               2
 216,210933685 = 232,154722304  boot/initrd.img                                4
 208,127407074 = 223,475101696  boot/initrd.img-5.15.0-67-generic              1
 216,210933685 = 232,154722304  boot/initrd.img-5.15.0-89-generic              4
 208,127407074 = 223,475101696  boot/initrd.img.old                            1

===================== sda7: ls -l /etc/grub.d/ (filtered) ======================

-rwxr-xr-x 1 root root 18224 Dec  2  2022 10_linux
-rwxr-xr-x 1 root root 42359 Dec  2  2022 10_linux_zfs
-rwxr-xr-x 1 root root 13101 Dec 18  2022 20_linux_xen
-rwxr-xr-x 1 root root 12059 Dec  2  2022 30_os-prober
-rwxr-xr-x 1 root root  1424 Dec  2  2022 30_uefi-firmware
-rwxr-xr-x 1 root root   700 Jul  3  2022 35_fwupd
-rwxr-xr-x 1 root root   214 Dec  2  2022 40_custom
-rwxr-xr-x 1 root root   216 Dec  2  2022 41_custom

======================== Unknown MBRs/Boot Sectors/etc =========================

Unknown BootLoader on mmcblk0p1




Suggested repair: ______________________________________________________________

The default repair of the Boot-Repair utility would reinstall the grub2 of
sda7 into the MBR of sda.
Grub-efi would not be selected by default because no ESP detected.
Additional repair would be performed: unhide-bootmenu-10s

Dernière modification par net_thibault (Le 29/11/2023, à 23:14)

Hors ligne

#31 Le 30/11/2023, à 21:14

net_thibault

Re : Problème Python après réinstall Ubuntu 20.04

Bonsoir,

J'ai passé ma journée à mettre au même niveau de logiciel installés mon PC portable sous ubuntu 20.04 avec les logciels qui tournent sur mon SSD externe,
ubuntu ne m'a posé aucun problème (à la différence des logiciels installés qui ont des petits bugs dans les choses qui ont changés et qui font perdre du temps) donc super l'install ubuntu en 20.04 fonctionne bien maintenant.

Les soucis d'install devait être du au fait qu'il restait un python 3.8 que j'avais installé et qui a du poser des problèmes avec le fait que je changeait les règlages de l'install de la partie logiciel de démarrage d'ubuntu.

Les explications de geole m'ont bien aidé la-dessus, merci à lui et merci à tous

Hors ligne