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.

#76 Le 29/03/2023, à 16:56

ylag

Re : [Résolu]Echec de réinstallation de Lubuntu 18.04 en dual boot avec Win

Bonjour,

Il y a une erreur dans la première commande au message #75, la barre oblique à la fin est superflue.
Réessaie avec :

find /etc/apt -type f  -name '*list*' -exec grep  -H "^[^#]" {} \;

A+

Hors ligne

#77 Le 30/03/2023, à 01:26

bouhq

Re : [Résolu]Echec de réinstallation de Lubuntu 18.04 en dual boot avec Win

Bonjour
Un léger mieux: ligne qui fait référence au cdrom a disparu:

root@lubuntu:/# find /etc/apt -type f  -name '*list*' -exec grep  -H "^[^#]" {} \; 
/etc/apt/sources.list:deb http://tn.archive.ubuntu.com/ubuntu/ bionic main restricted
/etc/apt/sources.list:deb http://tn.archive.ubuntu.com/ubuntu/ bionic-updates main restricted
/etc/apt/sources.list:deb http://tn.archive.ubuntu.com/ubuntu/ bionic universe
/etc/apt/sources.list:deb http://tn.archive.ubuntu.com/ubuntu/ bionic-updates universe
/etc/apt/sources.list:deb http://tn.archive.ubuntu.com/ubuntu/ bionic multiverse
/etc/apt/sources.list:deb http://tn.archive.ubuntu.com/ubuntu/ bionic-updates multiverse
/etc/apt/sources.list:deb http://tn.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
/etc/apt/sources.list:deb http://security.ubuntu.com/ubuntu bionic-security main restricted
/etc/apt/sources.list:deb http://security.ubuntu.com/ubuntu bionic-security universe
/etc/apt/sources.list:deb http://security.ubuntu.com/ubuntu bionic-security multiverse
root@lubuntu:/#

Vérification
r

oot@lubuntu:/# cat /etc/apt/sources.list

# See [url]http://help.ubuntu.com/community/UpgradeNotes[/url] for how to upgrade to
# newer versions of the distribution.
deb [url]http://tn.archive.ubuntu.com/ubuntu/[/url] bionic main restricted
# deb-src [url]http://tn.archive.ubuntu.com/ubuntu/[/url] bionic main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb [url]http://tn.archive.ubuntu.com/ubuntu/[/url] bionic-updates main restricted
# deb-src [url]http://tn.archive.ubuntu.com/ubuntu/[/url] bionic-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb [url]http://tn.archive.ubuntu.com/ubuntu/[/url] bionic universe
# deb-src [url]http://tn.archive.ubuntu.com/ubuntu/[/url] bionic universe
deb [url]http://tn.archive.ubuntu.com/ubuntu/[/url] bionic-updates universe
# deb-src [url]http://tn.archive.ubuntu.com/ubuntu/[/url] bionic-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu 
## team, and may not be under a free licence. Please satisfy yourself as to 
## your rights to use the software. Also, please note that software in 
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb [url]http://tn.archive.ubuntu.com/ubuntu/[/url] bionic multiverse
# deb-src [url]http://tn.archive.ubuntu.com/ubuntu/[/url] bionic multiverse
deb [url]http://tn.archive.ubuntu.com/ubuntu/[/url] bionic-updates multiverse
# deb-src [url]http://tn.archive.ubuntu.com/ubuntu/[/url] bionic-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb [url]http://tn.archive.ubuntu.com/ubuntu/[/url] bionic-backports main restricted universe multiverse
# deb-src [url]http://tn.archive.ubuntu.com/ubuntu/[/url] bionic-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb [url]http://archive.canonical.com/ubuntu[/url] bionic partner
# deb-src [url]http://archive.canonical.com/ubuntu[/url] bionic partner

deb [url]http://security.ubuntu.com/ubuntu[/url] bionic-security main restricted
# deb-src [url]http://security.ubuntu.com/ubuntu[/url] bionic-security main restricted
deb [url]http://security.ubuntu.com/ubuntu[/url] bionic-security universe
# deb-src [url]http://security.ubuntu.com/ubuntu[/url] bionic-security universe
deb [url]http://security.ubuntu.com/ubuntu[/url] bionic-security multiverse
# deb-src [url]http://security.ubuntu.com/ubuntu[/url] bionic-security multiverse
root@lubuntu:/#

Et une seconde vérification:

https://ibb.co/9qKWsHT

puis j'ai enchaîné avec le reste des commandes de la procédure décrite dans le message #38

Dernière modification par bouhq (Le 30/03/2023, à 01:27)

Hors ligne

#78 Le 30/03/2023, à 02:03

bouhq

Re : [Résolu]Echec de réinstallation de Lubuntu 18.04 en dual boot avec Win

Et en voici les retours des commandes restantes:

root@lubuntu:/# sudo mount  -v /dev/sda1  /boot/efi
mount: /dev/sda1 mounted on /boot/efi

Et

root@lubuntu:/# sudo apt-mark  hold   secureboot-db   
secureboot-db was already set on hold.
root@lubuntu:/# sudo apt-mark  hold   fwupdate-signed
fwupdate-signed was already set on hold.
root@lubuntu:/# sudo apt-mark  hold   grub-efi-amd64-signed
grub-efi-amd64-signed was already set on hold

.
Jusque là , c'est bon
Puis ça se gâte avec  cette commandes:

root@lubuntu:/# sudo apt-mark  hold   shim-signed

où on remarque des erreurs:

E: Unable to locate package shim-signed
E: No packages found
root@lubuntu:/# sudo dpkg --configure -a
root@lubuntu:/# sudo apt-get install --reinstall grub-efi
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  grub-efi-amd64
The following packages will be REMOVED:
  grub-gfxpayload-lists grub-pc
The following NEW packages will be installed:
  grub-efi grub-efi-amd64
0 upgraded, 2 newly installed, 2 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 50.4 kB of archives.
After this operation, 414 kB disk space will be freed.
Do you want to continue? [Y/n] y
Err:1 http://security.ubuntu.com/ubuntu bionic-security/main amd64 grub-efi-amd64 amd64 2.02-2ubuntu8.17
  404  Not Found [IP: 91.189.91.38 80]
Err:2 http://security.ubuntu.com/ubuntu bionic-security/main amd64 grub-efi amd64 2.02-2ubuntu8.17
  404  Not Found [IP: 91.189.91.38 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/g/grub2/grub-efi-amd64_2.02-2ubuntu8.17_amd64.deb  404  Not Found [IP: 91.189.91.38 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/g/grub2/grub-efi_2.02-2ubuntu8.17_amd64.deb  404  Not Found [IP: 91.189.91.38 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

Et l'installation du GRUB,je crois qu'elle ait été bien passée:

root@lubuntu:/# sudo grub-install /dev/sda --no-nvram --efi-directory=/boot/efi  --target=x86_64-efi  --no-uefi-secure-boot 
Installing for x86_64-efi platform.
Installation finished. No error reported.

Et aussi le up date:

oot@lubuntu:/# sudo update-grub 
Sourcing file `/etc/default/grub'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.4.0-42-generic
Found Windows Boot Manager on /dev/sda1@/EFI/Microsoft/Boot/bootmgfw.efi
Adding boot menu entry for EFI firmware configuration
done
root@lubuntu:/# sudo update-initramfs -c -k all
root@lubuntu:/# 

Mais, pour autant, ça ne boote toujours pas. En voici le lien pour le boot-info

http://paste.ubuntu.com/p/6vCzmC3cvb/

Dernière modification par bouhq (Le 30/03/2023, à 12:51)

Hors ligne

#79 Le 31/03/2023, à 00:05

bouhq

Re : [Résolu]Echec de réinstallation de Lubuntu 18.04 en dual boot avec Win

Bonsoir
Collage du Boot-info (lien au #78)

boot-info-4ppa203                                              [20230330_1048]

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

 => No boot loader is installed in the MBR of /dev/sda.
 => No known boot loader is installed in the MBR of /dev/sdb.

sda1: __________________________________________________________________________

    File system:       vfat
    Boot sector type:  Windows 8/10/11/2012: FAT32
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        /EFI/refind/refind.conf 
                       /efi/Boot/Bootx64-2019-01-17-22-38-43.efi 
                       /efi/Boot/bootmgfw.efi /efi/Boot/bootx64.efi 
                       /efi/Boot/fbx64.efi /efi/Boot/grubx64.efi 
                       /efi/Boot/mmx64.efi /efi/Boot/refind_x64.efi 
                       /efi/Boot/shimx64.efi /efi/refind/refind_x64.efi 
                       /efi/ubuntu/grubx64.efi /efi/ubuntu/mmx64.efi 
                       /efi/ubuntu/shimx64.efi /efi/Boot/grub.cfg 
                       /efi/ubuntu/grub.cfg /efi/Boot/ubuntu/grubx64.efi 
                       /efi/Boot/ubuntu/mmx64.efi 
                       /efi/Boot/ubuntu/shimx64.efi 
                       /efi/Microsoft/Boot/bootmgfw.efi 
                       /efi/Microsoft/Boot/bootmgr.efi 
                       /efi/Boot/ubuntu/grub.cfg

sda2: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  Ubuntu 18.04.5 LTS
    Boot files:        /boot/grub/grub.cfg /etc/fstab /etc/default/grub

sda3: __________________________________________________________________________

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

sda4: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Unknown
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  Windows 8 or 10
    Boot files:        /bootmgr /Windows/System32/winload.exe

sdb1: __________________________________________________________________________

    File system:       vfat
    Boot sector type:  Windows 8/10/11/2012: FAT32
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        /boot/grub/grub.cfg /syslinux.cfg /efi/BOOT/grubx64.efi


================================ 2 OS detected =================================

OS#1:   Ubuntu 18.04.5 LTS on sda2
OS#2:   Windows 8 or 10 on sda4

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

CPU architecture: 64-bit
Video: Intel Corporation from Intel Corporation
Live-session OS is Ubuntu 64-bit (Ubuntu 18.04.5 LTS, bionic, x86_64)

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

BIOS/UEFI firmware: V1.04 from Insyde Corp.
The firmware is EFI-compatible, and is set in EFI-mode for this live-session.
SecureBoot disabled (confirmed by mokutil).
BootCurrent: 0002
Timeout: 0 seconds
BootOrder: 0005,0000,0002,2001,2002,2003
Boot0000* Linux	HD(1,GPT,a27ccf8f-ee83-4f53-8d68-99359e5228b1,0x800,0x100000)/File(\EFI\Boot\grubx64.efi)RC
Boot0001* Unknown Device: 	HD(1,GPT,a27ccf8f-ee83-4f53-8d68-99359e5228b1,0x800,0x100000)/File(\EFI\ubuntu\shimx64.efi)RC
Boot0002* Linux	HD(1,GPT,e2ce7bb3-8f26-4bd1-92c8-991c3e1efa55,0x800,0xf3b7df)/File(\EFI\Boot\grubx64.efi)RC
Boot0005* Windows Boot Manager	HD(1,GPT,a27ccf8f-ee83-4f53-8d68-99359e5228b1,0x800,0x100000)/File(\EFI\Microsoft\Boot\bootmgfw.efi)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}...a................
Boot2001* EFI USB Device	RC
Boot2002* EFI DVD/CDROM	RC
Boot2003* EFI Network	RC

3aef9c72ad50faa8db576c01f85a0915   sda1/Boot/Bootx64-2019-01-17-22-38-43.efi
c433f4e31830c0bd000936e25896cfd3   sda1/Boot/bootmgfw.efi
5cade0b5409f474c757a4a26d6a500b0   sda1/Boot/bootx64.efi
5dabe049a4dad758d975dc2e60a7f00e   sda1/Boot/fbx64.efi
f06d36ba95d450130f39b545ac58d4d0   sda1/Boot/grubx64.efi
fdafb5eece6caeccb788c946a28e6872   sda1/Boot/mmx64.efi
f022c38d7ca7c9b7420940ff9a816fd7   sda1/Boot/refind_x64.efi
f06d36ba95d450130f39b545ac58d4d0   sda1/Boot/shimx64.efi
f022c38d7ca7c9b7420940ff9a816fd7   sda1/refind/refind_x64.efi
5cade0b5409f474c757a4a26d6a500b0   sda1/ubuntu/grubx64.efi
f243a42f3bd3164872e792dbc2610270   sda1/ubuntu/mmx64.efi
728124f6ec8e22fbdbe7034812c81b95   sda1/ubuntu/shimx64.efi
9f3328f5beb12c4c94da626ae68eb5bc   sda1/Boot/ubuntu/grubx64.efi
f243a42f3bd3164872e792dbc2610270   sda1/Boot/ubuntu/mmx64.efi
728124f6ec8e22fbdbe7034812c81b95   sda1/Boot/ubuntu/shimx64.efi
f8f28244c9551657b9eef41e1b3d66fb   sda1/Microsoft/Boot/bootmgfw.efi
c6c359c5c1795a32695cd68607fd9d82   sda1/Microsoft/Boot/bootmgr.efi

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

Disks info: ____________________________________________________________________

sda	: is-GPT,	no-BIOSboot,	has---ESP, 	not-usb,	not-mmc, has-os,	has-win,	2048 sectors * 512 bytes

Partitions info (1/3): _________________________________________________________

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

Partitions info (2/3): _________________________________________________________

sda1	: is---ESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sda2	: isnotESP,	fstab-has-goodEFI,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sda4	: isnotESP,	part-has-no-fstab,	no-nt,	haswinload,	no-recov-nor-hid,	bootmgr,	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-kernel,	fstab-without-boot,	not-sep-usr,	with--usr,	fstab-without-usr,	std-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

fdisk -l (filtered): ___________________________________________________________

Disk sda: 465.8 GiB, 500107862016 bytes, 976773168 sectors
Disk identifier: 7E22C3D5-6E51-48C3-A897-A6A6022F2C4E
          Start       End   Sectors  Size Type
sda1       2048   1050623   1048576  512M EFI System
sda2    1050624  68159487  67108864   32G Linux filesystem
sda3   68159488  68192255     32768   16M Microsoft reserved
sda4  128126976 230526975 102400000 48.8G Microsoft basic data
Disk sdb: 7.6 GiB, 8178892800 bytes, 15974400 sectors
Disk identifier: 70C5125C-AA3A-4A7F-91C6-8DC5C5F6DC7E
      Start      End  Sectors  Size Type
sdb1   2048 15974366 15972319  7.6G Microsoft basic data
Disk zram0: 452.9 MiB, 474832896 bytes, 115926 sectors
Disk zram1: 452.9 MiB, 474832896 bytes, 115926 sectors

parted -lm (filtered): _________________________________________________________

sda:500GB:scsi:512:4096:gpt:ATA WDC WD5000LPCX-2:;
1:1049kB:538MB:537MB:fat32:EFI System Partition:boot, esp;
2:538MB:34.9GB:34.4GB:ext4:Micosoft reserved:;
3:34.9GB:34.9GB:16.8MB::Microsoft reserved partition:msftres;
4:65.6GB:118GB:52.4GB:ntfs:Windows 10:msftdata;
sdb:8179MB:scsi:512:512:gpt:General UDisk:;
1:1049kB:8179MB:8178MB:fat32:Main Data Partition:msftdata;

Free space >10MiB: ______________________________________________________________

sda: 33297MiB:62562MiB:29265MiB
sda: 112562MiB:476940MiB:364378MiB

blkid (filtered): ______________________________________________________________

NAME   FSTYPE   UUID                                 PARTUUID                             LABEL       PARTLABEL
sda                                                                                                   
├─sda1 vfat     DFB9-6EDC                            a27ccf8f-ee83-4f53-8d68-99359e5228b1             EFI System Partition
├─sda2 ext4     dac2aa3a-26b7-4c60-8cf8-74f877197293 7ee7f750-f61e-4a45-bd8b-f401c248bb54             Micosoft reserved
├─sda3                                               40e183c9-f4cb-4ec2-aa9c-ad01c9ab728e             Microsoft reserved partition
└─sda4 ntfs     1B6914FC000A7840                     1e391a97-1285-4167-9096-dfde6f8b4ad4 Windows 10  Windows 10
sdb                                                                                                   
└─sdb1 vfat     988E-774E                            e2ce7bb3-8f26-4bd1-92c8-991c3e1efa55 LUBUNTU 18_ Main Data Partition

Mount points (filtered): _______________________________________________________

            Avail Use% Mounted on
/dev/sda1   472.7M   7% /mnt/boot-sav/sda1
/dev/sda2    23.5G  18% /mnt/boot-sav/sda2
/dev/sda4    31.8G  35% /mnt/boot-sav/sda4
/dev/sdb1     6.5G  15% /cdrom

Mount options (filtered): ______________________________________________________


==================== sda1/EFI/refind/refind.conf (filtered) ====================

timeout 20
menuentry Linux {
    icon EFI/refind/icons/os_linux.png
    volume 904404F8-B481-440C-A1E3-11A5A954E601
    loader bzImage-3.3.0-rc7
    initrd initrd-3.3.0.img
    options "ro root=UUID=5f96cafa-e0a7-4057-b18f-fa709db5b837"
    disabled
}
menuentry "Arch Linux" {
    icon     /EFI/refind/icons/os_arch.png
    volume   "Arch Linux"
    loader   /boot/vmlinuz-linux
    initrd   /boot/initramfs-linux.img
    options  "root=PARTUUID=5028fa50-0079-4c40-b240-abfaf28693ea rw add_efi_memmap"
    submenuentry "Boot using fallback initramfs" {
        initrd /boot/initramfs-linux-fallback.img
    }
    submenuentry "Boot to terminal" {
        add_options "systemd.unit=multi-user.target"
    }
    disabled
}
menuentry Ubuntu {
    loader /EFI/ubuntu/grubx64.efi
    icon /EFI/refind/icons/os_linux.png
    disabled
}
menuentry "ELILO" {
    loader \EFI\elilo\elilo.efi
    disabled
}
menuentry "Windows 7" {
    loader \EFI\Microsoft\Boot\bootmgfw.efi
    disabled
}
menuentry "Windows via shell script" {
    icon \EFI\refind\icons\os_win.png
    loader \EFI\tools\shell.efi
    options "fs0:\EFI\tools\launch_windows.nsh"
    disabled
}
menuentry "My macOS" {
    icon \EFI\refind\icons\os_mac.png
    volume "macOS boot"
    loader \System\Library\CoreServices\boot.efi
    disabled
}

====================== sda1/efi/Boot/grub.cfg (filtered) =======================

search.fs_uuid dac2aa3a-26b7-4c60-8cf8-74f877197293 root hd0,gpt2 
set prefix=($root)'/@/boot/grub'

===================== sda1/efi/ubuntu/grub.cfg (filtered) ======================

search.fs_uuid dac2aa3a-26b7-4c60-8cf8-74f877197293 root hd0,gpt2 
set prefix=($root)'/boot/grub'

=================== sda1/efi/Boot/ubuntu/grub.cfg (filtered) ===================

search.fs_uuid dac2aa3a-26b7-4c60-8cf8-74f877197293 root hd0,gpt2 
set prefix=($root)'/@/boot/grub'

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

Ubuntu   dac2aa3a-26b7-4c60-8cf8-74f877197293
Ubuntu, with Linux 5.4.0-42-generic   dac2aa3a-26b7-4c60-8cf8-74f877197293
Windows Boot Manager (on sda1)   osprober-efi-DFB9-6EDC
### END /etc/grub.d/30_os-prober ###
System setup   uefi-firmware
### END /etc/grub.d/30_uefi-firmware ###

========================== sda2/etc/fstab (filtered) ===========================

# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda2 during installation
UUID=dac2aa3a-26b7-4c60-8cf8-74f877197293 /               ext4    errors=remount-ro 0       1
# /boot/efi was on /dev/sda1 during installation
UUID=DFB9-6EDC  /boot/efi       vfat    umask=0077      0       1
/swapfile                                 none            swap    sw              0       0

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

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

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

           GiB - GB             File                                 Fragment(s)
   4.182621002 = 4.491055104    boot/grub/grub.cfg                             1
   4.024410248 = 4.321177600    boot/vmlinuz-5.4.0-42-generic                  2
   4.024410248 = 4.321177600    vmlinuz                                        2

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

-rwxr-xr-x 1 root root 12693 Jul 31  2020 10_linux
-rwxr-xr-x 1 root root 11298 Jul 31  2020 20_linux_xen
-rwxr-xr-x 1 root root 12059 Jul 31  2020 30_os-prober
-rwxr-xr-x 1 root root  1418 Jul 31  2020 30_uefi-firmware
-rwxr-xr-x 1 root root   214 Jul 31  2020 40_custom
-rwxr-xr-x 1 root root   216 Jul 31  2020 41_custom

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

Try Lubuntu without installing
Install Lubuntu
OEM install (for manufacturers)
Check disc for defects

========================= sdb1/syslinux.cfg (filtered) =========================

DEFAULT loadconfig

LABEL loadconfig
  CONFIG /isolinux/isolinux.cfg
  APPEND /isolinux/

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

           GiB - GB             File                                 Fragment(s)
            ?? = ??             boot/grub/grub.cfg                             1

================== sdb1: Location of files loaded by Syslinux ==================

           GiB - GB             File                                 Fragment(s)
            ?? = ??             syslinux.cfg                                   1



Suggested repair: ______________________________________________________________

The default repair of the Boot-Repair utility would reinstall the grub-efi of
sda2,
using the following options:  kernel-purge sda1/boot/efi
Additional repair would be performed: unhide-bootmenu-10s use-standard-efi-file

Final advice in case of suggested repair: ______________________________________

Please do not forget to make your UEFI firmware boot on the Ubuntu 18.04.5 LTS entry (sda1/efi/****/grub****.efi (**** will be updated in the final message) file) !
If your computer reboots directly into Windows, try to change the boot order in your UEFI firmware.
If your UEFI firmware does not allow to change the boot order, change the default boot entry of the Windows bootloader.
For example you can boot into Windows, then type the following command in an admin command prompt:
bcdedit /set {bootmgr} path \EFI\****\grub****.efi (**** will be updated in the final message)

Hors ligne

#80 Le 31/03/2023, à 10:02

geole

Re : [Résolu]Echec de réinstallation de Lubuntu 18.04 en dual boot avec Win

Bonjour.
A mon avis la structure de boot est maintenant bonne et elle fonctionne.  Mais il manque le fichier d'initialisation de ubuntu  initrd. En effet on ne voit qu'un seul ficher de boot au lieu de deux.

================== sda2: Location of files loaded by Grub ====================
           GiB - GB             File                                 Fragment(s)
   4.182621002 = 4.491055104    boot/grub/grub.cfg                             1
   4.024410248 = 4.321177600    boot/vmlinuz-5.4.0-42-generic                  2
   4.024410248 = 4.321177600    vmlinuz                                        2
===================== sda2: ls -l /etc/grub.d/ (filtered) =================

Je ne sais pas trop comment cela est arrivé. ( j'ai vu l'erreur sur 404 not found)
Je te propose de rebouter  avec le support d'installation, de faire le chroot puis de tenter maintenant la réparation suivante.

apt update
apt upgrade

Il devrait arriver de nouveaux noyaux qui devraient être complets.

Dernière modification par geole (Le 31/03/2023, à 12:38)


Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
"gedit admin:///etc/fstab" est proscrit,  utilisez "pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY xdg-open /etc/fstab" Voir  https://doc.ubuntu-fr.org/gedit
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248

Hors ligne

#81 Le 31/03/2023, à 11:03

Qid

Re : [Résolu]Echec de réinstallation de Lubuntu 18.04 en dual boot avec Win

geole a écrit :

Je te propose de rebouter  avec le support d'installation, de faire le chroot puis de tenter maintenant la réparation suivante.

apt update
apt upgrade

Il devrait arriver de nouveaux noyaux qui devraient être complets.

Ou de booter sur un kernel précédent qui devrait être plus au complet non ? Ce serait peut-être plus facile et éviterait de devoir faire le chroot : tu sais que je ne l'aime pas lui wink


"GNU/Linux c'est que du bon mais M$ Windows ce n'est pas si mal"
Référent technique Ubuntu d'un Groupe d'Utilisateur du Libre
plus d'info sur mon profil

Hors ligne

#82 Le 31/03/2023, à 12:14

geole

Re : [Résolu]Echec de réinstallation de Lubuntu 18.04 en dual boot avec Win

As-tu regardé la liste des noyaux disponibles dans /boot détectés par le boot-info?
et ceux listables dans /boot/grub/grub.cfg

====================== sda2/boot/grub/grub.cfg (filtered) ======================
Ubuntu   dac2aa3a-26b7-4c60-8cf8-74f877197293
Ubuntu, with Linux 5.4.0-42-generic   dac2aa3a-26b7-4c60-8cf8-74f877197293
Windows Boot Manager (on sda1)   osprober-efi-DFB9-6EDC
### END /etc/grub.d/30_os-prober ###
System setup   uefi-firmware
### END /etc/grub.d/30_uefi-firmware ###
========

Un seul et avec seulement une patte.

Ci-dessus, un exemple du contenu de la structure de boot avec deux noyaux ayant leurs deux pattes.

================== sdb6: Location of files loaded by Grub ====================
           GiB - GB             File                                 Fragment(s)
1010.942985535 = 1085.491765248 boot/grub/grub.cfg                             1
1831.132835388 = 1966.163910656 boot/vmlinuz                                   2
1826.796882629 = 1961.508216832 boot/vmlinuz-5.15.0-52-generic                 2
1831.132835388 = 1966.163910656 boot/vmlinuz-5.15.0-67-generic                 2
1826.796882629 = 1961.508216832 boot/vmlinuz.old                               2
1098.723628998 = 1179.745513472 boot/initrd.img                               11
1101.184566498 = 1182.387924992 boot/initrd.img-5.15.0-52-generic             11
1098.723628998 = 1179.745513472 boot/initrd.img-5.15.0-67-generic             11
1101.184566498 = 1182.387924992 boot/initrd.img.old                           11
=========

Dernière modification par geole (Le 31/03/2023, à 12:36)


Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
"gedit admin:///etc/fstab" est proscrit,  utilisez "pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY xdg-open /etc/fstab" Voir  https://doc.ubuntu-fr.org/gedit
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248

Hors ligne

#83 Le 31/03/2023, à 12:24

Qid

Re : [Résolu]Echec de réinstallation de Lubuntu 18.04 en dual boot avec Win

@ geole : Nop... J'avoue que je n'avais pas regardé... Autant pour moi... Bon sinon si le "upgrade" que j'aurais fait en "full-upgrade" de suite moi d'ailleurs ne suffit pas il faudra s'aventurer à réinstaller le kernel à la mains... Je pourrais essayer de vous retrouver la commande apt qui va bien si besoin...


"GNU/Linux c'est que du bon mais M$ Windows ce n'est pas si mal"
Référent technique Ubuntu d'un Groupe d'Utilisateur du Libre
plus d'info sur mon profil

Hors ligne

#84 Le 31/03/2023, à 12:46

geole

Re : [Résolu]Echec de réinstallation de Lubuntu 18.04 en dual boot avec Win

Merci de ta proposttion.
En effet   si l'upgrade ne corrige pas, je ne vais probablement pas demander à boot-repair de tout purger et de réinstaller le dernier noyau, Je crains que  cela se passe aussi mal que l'installation initiale et sans plus de visibilité sur les causes d'erreur.
Il faudra donc lancer la/les bonne(s) commande(s) en mode chroot et tout ce week-end je ne dispose que d'un ipad. Ce qui n'est pas très pratique pour rechercher.


Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
"gedit admin:///etc/fstab" est proscrit,  utilisez "pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY xdg-open /etc/fstab" Voir  https://doc.ubuntu-fr.org/gedit
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248

Hors ligne

#85 Le 31/03/2023, à 21:37

bouhq

Re : [Résolu]Echec de réinstallation de Lubuntu 18.04 en dual boot avec Win

J'ai un peu anticipé sur vos propositions, tôt ce matin ( à 1h00) .
Dans les retours des commandes que j'ai postés hier à 2h30 du matin, il y avait une proposition sur laquelle j'ai sauté:

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

J'ai refait la procédure décrité dans le message#38  en y introduisant cette commande

apt-get update

et toutes les erreurs rsuscitées par la  commande:

root@lubuntu:/# sudo apt-get install --reinstall grub-efi

et relevées dans  le message# 78 ont disparu.
Et dans les retours de toutes les commandes que j'ai refaites, je n'ai revélé qu'une seule anomalie:

root@lubuntu:/# sudo apt-get install --reinstall grub-efi
Reading package lists... Done
Building dependency tree      
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
 grub-efi-amd64-signed : Depends: grub-efi-amd64-bin (= 2.02-2ubuntu8.17)
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages

Du coup j'ai fait un nouveau boot-info qui m'a paru différent de celui  collé dans le message #79 et dont voici le lien

 http://paste.ubuntu.com/p/nP7MtwqrNb/

Je ne sais pas si après ça, il reste nécessaire de faire les commandes

apt update
apt upgrade

A vous de voir!

Hors ligne

#86 Le 31/03/2023, à 21:42

bouhq

Re : [Résolu]Echec de réinstallation de Lubuntu 18.04 en dual boot avec Win

Collage du Boot-info ( lien au #85)

Paste from boot-info 31 March 2023 19:12 +0000

Syntax highlighting: bash
View raw

boot-info-4ppa203                                              [20230331_1912]

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

 => No boot loader is installed in the MBR of /dev/sda.
 => No known boot loader is installed in the MBR of /dev/sdb.

sda1: __________________________________________________________________________

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

sda2: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  Ubuntu 18.04.5 LTS
    Boot files:        /boot/grub/grub.cfg /etc/fstab /etc/default/grub

sda3: __________________________________________________________________________

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

sda4: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Unknown
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  Windows 8 or 10
    Boot files:        

sdb1: __________________________________________________________________________

    File system:       vfat
    Boot sector type:  Windows 8/10/11/2012: FAT32
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        /boot/grub/grub.cfg /syslinux.cfg /efi/BOOT/grubx64.efi


================================ 2 OS detected =================================

OS#1:   Ubuntu 18.04.5 LTS on sda2
OS#2:   Windows 8 or 10 on sda4

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

CPU architecture: 64-bit
Video: Intel Corporation from Intel Corporation
Live-session OS is Ubuntu 64-bit (Ubuntu 18.04.5 LTS, bionic, x86_64)

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

BIOS/UEFI firmware: V1.04 from Insyde Corp.
The firmware is EFI-compatible, and is set in EFI-mode for this live-session.
SecureBoot disabled (confirmed by mokutil).
BootCurrent: 0002
Timeout: 0 seconds
BootOrder: 0005,0000,0002,2001,2002,2003
Boot0000* Linux	HD(1,GPT,a27ccf8f-ee83-4f53-8d68-99359e5228b1,0x800,0x100000)/File(\EFI\Boot\grubx64.efi)RC
Boot0001* Unknown Device: 	HD(1,GPT,a27ccf8f-ee83-4f53-8d68-99359e5228b1,0x800,0x100000)/File(\EFI\ubuntu\shimx64.efi)RC
Boot0002* Linux	HD(1,GPT,e2ce7bb3-8f26-4bd1-92c8-991c3e1efa55,0x800,0xf3b7df)/File(\EFI\Boot\grubx64.efi)RC
Boot0005* Windows Boot Manager	HD(1,GPT,a27ccf8f-ee83-4f53-8d68-99359e5228b1,0x800,0x100000)/File(\EFI\Microsoft\Boot\bootmgfw.efi)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}...a................
Boot2001* EFI USB Device	RC
Boot2002* EFI DVD/CDROM	RC
Boot2003* EFI Network	RC

3aef9c72ad50faa8db576c01f85a0915   sda1/Boot/Bootx64-2019-01-17-22-38-43.efi
c433f4e31830c0bd000936e25896cfd3   sda1/Boot/bootmgfw.efi
5cade0b5409f474c757a4a26d6a500b0   sda1/Boot/bootx64.efi
5dabe049a4dad758d975dc2e60a7f00e   sda1/Boot/fbx64.efi
f06d36ba95d450130f39b545ac58d4d0   sda1/Boot/grubx64.efi
fdafb5eece6caeccb788c946a28e6872   sda1/Boot/mmx64.efi
f022c38d7ca7c9b7420940ff9a816fd7   sda1/Boot/refind_x64.efi
f06d36ba95d450130f39b545ac58d4d0   sda1/Boot/shimx64.efi
f022c38d7ca7c9b7420940ff9a816fd7   sda1/refind/refind_x64.efi
5cade0b5409f474c757a4a26d6a500b0   sda1/ubuntu/grubx64.efi
f243a42f3bd3164872e792dbc2610270   sda1/ubuntu/mmx64.efi
728124f6ec8e22fbdbe7034812c81b95   sda1/ubuntu/shimx64.efi
9f3328f5beb12c4c94da626ae68eb5bc   sda1/Boot/ubuntu/grubx64.efi
f243a42f3bd3164872e792dbc2610270   sda1/Boot/ubuntu/mmx64.efi
728124f6ec8e22fbdbe7034812c81b95   sda1/Boot/ubuntu/shimx64.efi
f8f28244c9551657b9eef41e1b3d66fb   sda1/Microsoft/Boot/bootmgfw.efi
c6c359c5c1795a32695cd68607fd9d82   sda1/Microsoft/Boot/bootmgr.efi

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

Disks info: ____________________________________________________________________

sda	: is-GPT,	no-BIOSboot,	has---ESP, 	not-usb,	not-mmc, has-os,	has-win,	2048 sectors * 512 bytes

Partitions info (1/3): _________________________________________________________

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

Partitions info (2/3): _________________________________________________________

sda1	: is---ESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sda2	: isnotESP,	fstab-has-goodEFI,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sda4	: isnotESP,	part-has-no-fstab,	no-nt,	haswinload,	no-recov-nor-hid,	bootmgr,	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-kernel,	fstab-without-boot,	not-sep-usr,	with--usr,	fstab-without-usr,	std-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

fdisk -l (filtered): ___________________________________________________________

Disk sda: 465.8 GiB, 500107862016 bytes, 976773168 sectors
Disk identifier: 7E22C3D5-6E51-48C3-A897-A6A6022F2C4E
          Start       End   Sectors  Size Type
sda1       2048   1050623   1048576  512M EFI System
sda2    1050624  68159487  67108864   32G Linux filesystem
sda3   68159488  68192255     32768   16M Microsoft reserved
sda4  128126976 230526975 102400000 48.8G Microsoft basic data
Disk sdb: 7.6 GiB, 8178892800 bytes, 15974400 sectors
Disk identifier: 70C5125C-AA3A-4A7F-91C6-8DC5C5F6DC7E
      Start      End  Sectors  Size Type
sdb1   2048 15974366 15972319  7.6G Microsoft basic data
Disk zram0: 452.9 MiB, 474832896 bytes, 115926 sectors
Disk zram1: 452.9 MiB, 474832896 bytes, 115926 sectors

parted -lm (filtered): _________________________________________________________

sda:500GB:scsi:512:4096:gpt:ATA WDC WD5000LPCX-2:;
1:1049kB:538MB:537MB:fat32:EFI System Partition:boot, esp;
2:538MB:34.9GB:34.4GB:ext4:Micosoft reserved:;
3:34.9GB:34.9GB:16.8MB::Microsoft reserved partition:msftres;
4:65.6GB:118GB:52.4GB:ntfs:Windows 10:msftdata;
sdb:8179MB:scsi:512:512:gpt:General UDisk:;
1:1049kB:8179MB:8178MB:fat32:Main Data Partition:msftdata;

Free space >10MiB: ______________________________________________________________

sda: 33297MiB:62562MiB:29265MiB
sda: 112562MiB:476940MiB:364378MiB

blkid (filtered): ______________________________________________________________

NAME   FSTYPE   UUID                                 PARTUUID                             LABEL       PARTLABEL
sda                                                                                                   
├─sda1 vfat     DFB9-6EDC                            a27ccf8f-ee83-4f53-8d68-99359e5228b1             EFI System Partition
├─sda2 ext4     dac2aa3a-26b7-4c60-8cf8-74f877197293 7ee7f750-f61e-4a45-bd8b-f401c248bb54             Micosoft reserved
├─sda3                                               40e183c9-f4cb-4ec2-aa9c-ad01c9ab728e             Microsoft reserved partition
└─sda4 ntfs     1B6914FC000A7840                     1e391a97-1285-4167-9096-dfde6f8b4ad4 Windows 10  Windows 10
sdb                                                                                                   
└─sdb1 vfat     988E-774E                            e2ce7bb3-8f26-4bd1-92c8-991c3e1efa55 LUBUNTU 18_ Main Data Partition

Mount points (filtered): _______________________________________________________

            Avail Use% Mounted on
/dev/sda1   472.7M   7% /mnt/boot/efi
/dev/sda2    23.4G  18% /mnt
/dev/sda4    31.7G  35% /mnt/boot-sav/sda4
/dev/sdb1     6.5G  15% /cdrom

Mount options (filtered): ______________________________________________________


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

Ubuntu   dac2aa3a-26b7-4c60-8cf8-74f877197293
Ubuntu, with Linux 5.4.0-42-generic   dac2aa3a-26b7-4c60-8cf8-74f877197293
Windows Boot Manager (on sda1)   osprober-efi-DFB9-6EDC
### END /etc/grub.d/30_os-prober ###
System setup   uefi-firmware
### END /etc/grub.d/30_uefi-firmware ###

========================== sda2/etc/fstab (filtered) ===========================

# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda2 during installation
UUID=dac2aa3a-26b7-4c60-8cf8-74f877197293 /               ext4    errors=remount-ro 0       1
# /boot/efi was on /dev/sda1 during installation
UUID=DFB9-6EDC  /boot/efi       vfat    umask=0077      0       1
/swapfile                                 none            swap    sw              0       0

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

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

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

           GiB - GB             File                                 Fragment(s)
   3.961925507 = 4.254085120    boot/grub/grub.cfg                             2
   4.024410248 = 4.321177600    boot/vmlinuz-5.4.0-42-generic                  2
   4.024410248 = 4.321177600    vmlinuz                                        2

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

-rwxr-xr-x 1 root root 12693 Jul 31  2020 10_linux
-rwxr-xr-x 1 root root 11298 Jul 31  2020 20_linux_xen
-rwxr-xr-x 1 root root 12059 Jul 31  2020 30_os-prober
-rwxr-xr-x 1 root root  1418 Jul 31  2020 30_uefi-firmware
-rwxr-xr-x 1 root root   214 Jul 31  2020 40_custom
-rwxr-xr-x 1 root root   216 Jul 31  2020 41_custom

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

Try Lubuntu without installing
Install Lubuntu
OEM install (for manufacturers)
Check disc for defects

========================= sdb1/syslinux.cfg (filtered) =========================

DEFAULT loadconfig

LABEL loadconfig
  CONFIG /isolinux/isolinux.cfg
  APPEND /isolinux/

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

           GiB - GB             File                                 Fragment(s)
            ?? = ??             boot/grub/grub.cfg                             1

================== sdb1: Location of files loaded by Syslinux ==================

           GiB - GB             File                                 Fragment(s)
            ?? = ??             syslinux.cfg                                   1



Suggested repair: ______________________________________________________________

The default repair of the Boot-Repair utility would reinstall the grub-efi of
sda2,
using the following options:  kernel-purge sda1/boot/efi
Additional repair would be performed: unhide-bootmenu-10s use-standard-efi-file

Final advice in case of suggested repair: ______________________________________

Please do not forget to make your UEFI firmware boot on the Ubuntu 18.04.5 LTS entry (sda1/efi/****/grub****.efi (**** will be updated in the final message) file) !
If your computer reboots directly into Windows, try to change the boot order in your UEFI firmware.
If your UEFI firmware does not allow to change the boot order, change the default boot entry of the Windows bootloader.
For example you can boot into Windows, then type the following command in an admin command prompt:
bcdedit /set {bootmgr} path \EFI\****\grub****.efi (**** will be updated in the final message)

Hors ligne

#87 Le 31/03/2023, à 21:56

bouhq

Re : [Résolu]Echec de réinstallation de Lubuntu 18.04 en dual boot avec Win

Déjà une différence avec le précédent boot-info:  2 fichiers  de boot d'initialisation de ubuntu  initrd  :
:.
 

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

           GiB - GB             File                                 Fragment(s)
   3.961925507 = 4.254085120    boot/grub/grub.cfg                             2
   4.024410248 = 4.321177600    boot/vmlinuz-5.4.0-42-generic                  2
   4.024410248 = 4.321177600    vmlinuz                                        2

Hors ligne

#88 Le 01/04/2023, à 14:58

geole

Re : [Résolu]Echec de réinstallation de Lubuntu 18.04 en dual boot avec Win

Bonjour.
Je ne suis très fort pour les paquets absents, tente

apt install grub-efi-amd64-bin 

J'attends toujours le retour de la commande.

apt upgrade

Dernière modification par geole (Le 01/04/2023, à 15:01)


Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
"gedit admin:///etc/fstab" est proscrit,  utilisez "pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY xdg-open /etc/fstab" Voir  https://doc.ubuntu-fr.org/gedit
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248

Hors ligne

#89 Le 01/04/2023, à 22:50

bouhq

Re : [Résolu]Echec de réinstallation de Lubuntu 18.04 en dual boot avec Win

Bonsoir
Toujours en chroot?

Hors ligne

#90 Le 01/04/2023, à 23:05

Qid

Re : [Résolu]Echec de réinstallation de Lubuntu 18.04 en dual boot avec Win

bouhq a écrit :

Bonsoir
Toujours en chroot?

Forcément oui : les commandes demandées en l'état ne peuvent être bien interprétées que par le système lui-même... Pas par un autre wink


"GNU/Linux c'est que du bon mais M$ Windows ce n'est pas si mal"
Référent technique Ubuntu d'un Groupe d'Utilisateur du Libre
plus d'info sur mon profil

Hors ligne

#91 Le 02/04/2023, à 01:15

bouhq

Re : [Résolu]Echec de réinstallation de Lubuntu 18.04 en dual boot avec Win

Oui, bien sûr, juste pour avoir confirmation, d'ailleurs je n'ai pas attendu la réponse pour passer les deux commandes dont voici le retour:

apt install grub-efi-amd64-bin
root@lubuntu:/# apt install grub-efi-amd64-bin 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
 grub-efi-amd64-signed : Depends: grub-efi-amd64-bin (= 2.02-2ubuntu8.17)
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
root@lubuntu:/# apt upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  gir1.2-goa-1.0 gir1.2-snapd-1
Use 'sudo apt autoremove' to remove them.
The following packages have been kept back:
  grub-common grub-efi-amd64-bin grub-efi-amd64-signed grub-pc grub-pc-bin
  grub2-common
0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
E: Can not write log (Is /dev/pts mounted?) - posix_openpt (19: No such device)
W: APT had planned for dpkg to do more than it reported back (0 vs 4).
   Affected packages: grub-efi-amd64-signed:amd64

Hors ligne

#92 Le 02/04/2023, à 09:40

Qid

Re : [Résolu]Echec de réinstallation de Lubuntu 18.04 en dual boot avec Win

La seconde erreur n'est pas vraiment un souci car elle semble être dû au chroot par contre pour la première... Je laisse la main car ce n'était pas mon idée à moi... Mais là c'est pas cool...


"GNU/Linux c'est que du bon mais M$ Windows ce n'est pas si mal"
Référent technique Ubuntu d'un Groupe d'Utilisateur du Libre
plus d'info sur mon profil

Hors ligne

#93 Le 02/04/2023, à 10:27

geole

Re : [Résolu]Echec de réinstallation de Lubuntu 18.04 en dual boot avec Win

Bonjour.
La commande upgrade semble ne pas indiquer une installation du module.
boot/initrd-5.4.0-42-generic
Pour Quid.  A mon avis supergrub2 ne fait pas de chroot mais fait booter par détection de ce module comme le ferait refind.

Donc, il faudra certainement trouver la bonne commande qui le fait ou à défaut demander à boot-repair de réinstaller le kernel avec risque de plantage sans production de compte-rendu.

La procédure de chroot dit que aussitôt après avoir fait la commande chroot.

Quelques contrôles seront à faire par exemple
mount -t devpts devpts /dev/pts
....

Ne pas avoir fait cette commande, provoque l'erreur

E: Can not write log (Is /dev/pts mounted?) - posix_openpt (19: No such device)

C'est signalé comme étant une erreur très importante. ( Error)2
Mais cela n'est pas si grave car on est en chroot.

J'ai vu qu'il y a toujours ce message

W: APT had planned for dpkg to do more than it reported back (0 vs 4).

Qui est qualifié d'anomalie ( Warning)
A tenter.

apt install  grub-efi-amd64-signed   

Nota. Je devrais retrouver mon portable demain dans l'àprès-midi

Dernière modification par geole (Le 02/04/2023, à 10:45)


Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
"gedit admin:///etc/fstab" est proscrit,  utilisez "pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY xdg-open /etc/fstab" Voir  https://doc.ubuntu-fr.org/gedit
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248

Hors ligne

#94 Le 02/04/2023, à 14:52

bouhq

Re : [Résolu]Echec de réinstallation de Lubuntu 18.04 en dual boot avec Win

Bonjour

apt install  grub-efi-amd64-signed 
chroot@lubuntu:/# apt install  grub-efi-amd64-signed 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  gir1.2-goa-1.0 gir1.2-snapd-1
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  grub-common grub-efi-amd64-bin grub-pc grub-pc-bin grub2-common
Suggested packages:
  multiboot-doc grub-emu xorriso desktop-base
The following held packages will be changed:
  grub-efi-amd64-signed
The following packages will be upgraded:
  grub-common grub-efi-amd64-bin grub-efi-amd64-signed grub-pc grub-pc-bin
  grub2-common
6 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 2934 kB/6278 kB of archives.
After this operation, 11.3 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://tn.archive.ubuntu.com/ubuntu bionic-updates/main amd64 grub-efi-amd64-signed amd64 1.187.3~18.04.1+2.06-2ubuntu14.1 [1343 kB]
Get:2 http://tn.archive.ubuntu.com/ubuntu bionic-updates/main amd64 grub-efi-amd64-bin amd64 2.06-2ubuntu14.1 [1591 kB]
Err:2 http://tn.archive.ubuntu.com/ubuntu bionic-updates/main amd64 grub-efi-amd64-bin amd64 2.06-2ubuntu14.1
  Connection failed [IP: 91.189.91.39 80]
Fetched 1343 kB in 2min 21s (9507 B/s)       
E: Failed to fetch http://tn.archive.ubuntu.com/ubuntu/pool/main/g/grub2-unsigned/grub-efi-amd64-bin_2.06-2ubuntu14.1_amd64.deb  Connection failed [IP: 91.189.91.39 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

J'ai tenté :

apt-get update
root@lubuntu:/# apt-get update
Running in chroot, ignoring request: start
Hit:1 http://tn.archive.ubuntu.com/ubuntu bionic InRelease
Get:2 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Get:3 http://tn.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]   
Hit:4 http://ppa.launchpad.net/yannubuntu/boot-repair/ubuntu bionic InRelease  
Get:5 http://tn.archive.ubuntu.com/ubuntu bionic-backports InRelease [83.3 kB] 
Get:6 http://security.ubuntu.com/ubuntu bionic-security/main amd64 DEP-11 Metadata [76.8 kB]
Get:7 http://tn.archive.ubuntu.com/ubuntu bionic-updates/main amd64 DEP-11 Metadata [297 kB]
Get:8 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 DEP-11 Metadata [62.4 kB]
Get:9 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 DEP-11 Metadata [2464 B]
Get:10 http://tn.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 DEP-11 Metadata [303 kB]
Get:11 http://tn.archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 DEP-11 Metadata [2468 B]
Get:12 http://tn.archive.ubuntu.com/ubuntu bionic-backports/main amd64 DEP-11 Metadata [8116 B]
Get:13 http://tn.archive.ubuntu.com/ubuntu bionic-backports/universe amd64 DEP-11 Metadata [10.0 kB]
Fetched 1023 kB in 10s (99.2 kB/s)                                             
Reading package lists... Done
root@lubuntu:/#

J'ai enchainé avec:

apt-get upgrade

r

oot@lubuntu:/# apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  gir1.2-goa-1.0 gir1.2-snapd-1
Use 'sudo apt autoremove' to remove them.
The following packages have been kept back:
  grub-common grub-efi-amd64-bin grub-efi-amd64-signed grub-pc grub-pc-bin
  grub2-common
0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
W: APT had planned for dpkg to do more than it reported back (0 vs 4).
   Affected packages: grub-efi-amd64-signed:amd64
root@lubuntu:/# 

Et  pour vérifier s'il ya des changements ,voic le lien pour Boot-info:

http://paste.ubuntu.com/p/B4xT58nqH2/

En tous cas, moi, j'en ai remarqué:

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

Ubuntu   dac2aa3a-26b7-4c60-8cf8-74f877197293
Ubuntu, with Linux 5.4.0-146-generic   dac2aa3a-26b7-4c60-8cf8-74f877197293
Ubuntu, with Linux 5.4.0-42-generic   dac2aa3a-26b7-4c60-8cf8-74f877197293
Windows Boot Manager (on sda1)   osprober-efi-DFB9-6EDC
### END /etc/grub.d/30_os-prober ###
System setup   uefi-firmware
### END /etc/grub.d/30_uefi-firmware ###

et:

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

           GiB - GB             File                                 Fragment(s)
   2.903327942 = 3.117424640    boot/grub/grub.cfg                             1
   9.050262451 = 9.717645312    boot/vmlinuz-5.4.0-146-generic                 1
   4.024410248 = 4.321177600    boot/vmlinuz-5.4.0-42-generic                  2
   9.050262451 = 9.717645312    vmlinuz                                        1
   4.024410248 = 4.321177600    vmlinuz.old                                    2
   9.630558014 = 10.340732928   boot/initrd.img-5.4.0-146-generic              4
   9.630558014 = 10.340732928   initrd.img                                     4

Dernière modification par bouhq (Le 02/04/2023, à 16:48)

Hors ligne

#95 Le 02/04/2023, à 19:07

geole

Re : [Résolu]Echec de réinstallation de Lubuntu 18.04 en dual boot avec Win

Du coup, tu devrais essayer de booter normalement car la version 5.4.0-146 a bien ses deux fichiers de boot,
Dans la structure NVRAM, je mets en gras la bonne ligne.
Boot0000* Linux    HD(1,GPT,a27ccf8f-ee83-4f53-8d68-99359e5228b1,0x800,0x100000)/File(\EFI\Boot\grubx64.efi)RC
Boot0001* Unknown Device:     HD(1,GPT,a27ccf8f-ee83-4f53-8d68-99359e5228b1,0x800,0x100000)/File(\EFI\ubuntu\shimx64.efi)RC
Boot0002* Linux    HD(1,GPT,e2ce7bb3-8f26-4bd1-92c8-991c3e1efa55,0x800,0xf3b7df)/File(\EFI\Boot\grubx64.efi)RC

Dernière modification par geole (Le 02/04/2023, à 19:19)


Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
"gedit admin:///etc/fstab" est proscrit,  utilisez "pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY xdg-open /etc/fstab" Voir  https://doc.ubuntu-fr.org/gedit
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248

Hors ligne

#96 Le 02/04/2023, à 19:11

Qid

Re : [Résolu]Echec de réinstallation de Lubuntu 18.04 en dual boot avec Win

Ah bah si il y a eu installation propre d'un nouveau kernel grâce à l'upgrade effectivement il ne devrait plus y avoir de soucis...


"GNU/Linux c'est que du bon mais M$ Windows ce n'est pas si mal"
Référent technique Ubuntu d'un Groupe d'Utilisateur du Libre
plus d'info sur mon profil

Hors ligne

#97 Le 02/04/2023, à 23:28

bouhq

Re : [Résolu]Echec de réinstallation de Lubuntu 18.04 en dual boot avec Win

geole a écrit :

Du coup, tu devrais essayer de booter normalement car la version 5.4.0-146 a bien ses deux fichiers de boot,
Dans la structure NVRAM, je mets en gras la bonne ligne.

Qid a écrit :

Ah bah si il y a eu installation propre d'un nouveau kernel grâce à l'upgrade effectivement il ne devrait plus y avoir de soucis...

Malheureusement ça ne boote toujours pas normalement.

Hors ligne

#98 Le 02/04/2023, à 23:55

geole

Re : [Résolu]Echec de réinstallation de Lubuntu 18.04 en dual boot avec Win

Il n'y a plus de grub dans la partition SDA1!!!!!!!!!
Ni de refind d'ailleurs .. Ni de windows...

sda1: __________________________________________________________________________
    File system:       vfat
    Boot sector type:  Windows 8/10/11/2012: FAT32
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        

sda2: __________________________________________________________________________

Que s'est-il passé de particulier?
Il faut que tu refasses un chroot et de nouveau la commande
grub-install avec sa codification particulière.
Suivi de la commande update-grub.

Ajout. Même SDA4 a perdu ses fichiers de boot.

Boot files:        /bootmgr /Windows/System32/winload.exes

En fait, c'est peut-être boot-info qui ne les affiche plus car on les voit à un autre endroit.

aef9c72ad50faa8db576c01f85a0915   sda1/Boot/Bootx64-2019-01-17-22-38-43.efi
c433f4e31830c0bd000936e25896cfd3   sda1/Boot/bootmgfw.efi
5cade0b5409f474c757a4a26d6a500b0   sda1/Boot/bootx64.efi
5dabe049a4dad758d975dc2e60a7f00e   sda1/Boot/fbx64.efi
f06d36ba95d450130f39b545ac58d4d0   sda1/Boot/grubx64.efi
fdafb5eece6caeccb788c946a28e6872   sda1/Boot/mmx64.efi
f022c38d7ca7c9b7420940ff9a816fd7   sda1/Boot/refind_x64.efi
f06d36ba95d450130f39b545ac58d4d0   sda1/Boot/shimx64.efi
f022c38d7ca7c9b7420940ff9a816fd7   sda1/refind/refind_x64.efi
5cade0b5409f474c757a4a26d6a500b0   sda1/ubuntu/grubx64.efi
f243a42f3bd3164872e792dbc2610270   sda1/ubuntu/mmx64.efi
728124f6ec8e22fbdbe7034812c81b95   sda1/ubuntu/shimx64.efi
9f3328f5beb12c4c94da626ae68eb5bc   sda1/Boot/ubuntu/grubx64.efi
f243a42f3bd3164872e792dbc2610270   sda1/Boot/ubuntu/mmx64.efi
728124f6ec8e22fbdbe7034812c81b95   sda1/Boot/ubuntu/shimx64.efi
f8f28244c9551657b9eef41e1b3d66fb   sda1/Microsoft/Boot/bootmgfw.efi
c6c359c5c1795a32695cd68607fd9d82   sda1/Microsoft/Boot/bootmgr.efi

Je ne trouve pas trace du fichier sda1/EFI/ubuntu/grub.cfg

Dernière modification par geole (Le 03/04/2023, à 10:00)


Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
"gedit admin:///etc/fstab" est proscrit,  utilisez "pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY xdg-open /etc/fstab" Voir  https://doc.ubuntu-fr.org/gedit
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248

Hors ligne

#99 Le 03/04/2023, à 15:41

bouhq

Re : [Résolu]Echec de réinstallation de Lubuntu 18.04 en dual boot avec Win

Bonjour
Je fais quoi alors?  le chroot? D'accord

setxkbmap fr
sudo mount /dev/sda2           /mnt
sudo mount --bind /dev /mnt/dev
sudo mount -t proc  /proc              /mnt/proc
sudo mount -t sysfs /sys               /mnt/sys
sudo mount --bind   /run               /mnt/run
sudo mount --bind   /sys               /mnt/sys
sudo modprobe efivars  
sudo chroot /mnt
mount -t devpts devpts /dev/pts 
ping -c4 google.fr
ls   -ls /home
sudo mount  -v /dev/sda1  /boot/efi
sudo apt-mark  hold   secureboot-db   
sudo apt-mark  hold   fwupdate-signed
sudo apt-mark  hold   grub-efi-amd64-signed
sudo apt-mark  hold   shim-signed
sudo dpkg --configure -a

Mais après, tellement on a tenté beaucoup de trucs qui se ressemblent que les choses sont devenues confuses pour moi.

sudo apt-get install --reinstall grub-efi
sudo grub-install /dev/sda --no-nvram --efi-directory=/boot/efi  --target=x86_64-efi  --no-uefi-secure-boot 
sudo update-grub 
apt-get update
sudo update-initramfs -c -k all
apt install  grub-efi-amd64-signed 
apt install grub-efi-amd64-bin
apt-get upgrade

Qu'est ce que je garde et qu'est ce que j'élimine?

Hors ligne

#100 Le 03/04/2023, à 15:56

geole

Re : [Résolu]Echec de réinstallation de Lubuntu 18.04 en dual boot avec Win

Je verrais bien cela. Sans savoir si c'est la bonne solution.

setxkbmap fr
sudo mount /dev/sda2           /mnt
sudo mount --bind /dev /mnt/dev
sudo mount -t proc  /proc              /mnt/proc
sudo mount -t sysfs /sys               /mnt/sys
sudo mount --bind   /run               /mnt/run
sudo mount --bind   /sys               /mnt/sys
sudo modprobe efivars  
sudo chroot /mnt
mount -t devpts devpts /dev/pts 
ping -c4 google.fr
ls   -ls /home
mount  -v /dev/sda1  /boot/efi
 dpkg --configure -a
grub-install /dev/sda --no-nvram --efi-directory=/boot/efi  --target=x86_64-efi  --no-uefi-secure-boot 
update-grub 
exit

Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
"gedit admin:///etc/fstab" est proscrit,  utilisez "pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY xdg-open /etc/fstab" Voir  https://doc.ubuntu-fr.org/gedit
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248

Hors ligne