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 02/04/2023, à 12:55

B_Peter

Re : Message d'erreurs au démarrage.

Le voici :

#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.


/usr/local/sbin/num.sh &
# Numlock enable
[ -x /usr/bin/numlockx ] && numlockx on

exit 0

Linux Ubuntu 22.04.2 LTS
12th Gen Intel® Core™ i7-1260P × 16
64,0 Gio / Mesa Intel® Graphics (ADL GT2) Intel IRIS Xe

Hors ligne

#27 Le 02/04/2023, à 12:57

ylag

Re : Message d'erreurs au démarrage.

Bonjour,

xubu1957 a écrit :

Bonjour,

cat /etc/rc.local

donne une info ?

Second pavé au message #13.

A+

Dernière modification par ylag (Le 02/04/2023, à 12:59)

Hors ligne

#28 Le 02/04/2023, à 12:59

B_Peter

Re : Message d'erreurs au démarrage.

J'ai vu

peter@peter-NS5x-NS7xPU:~$ cat /etc/rc.local
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.


/usr/local/sbin/num.sh &
# Numlock enable
[ -x /usr/bin/numlockx ] && numlockx on

exit 0peter@peter-NS5x-NS7xPU:~$ 

Je dois placer ceci en commentaire ?

/usr/local/sbin/num.sh &

Sans risque si je redémarrage ?

# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

Le bit d’exécution est ?

Dernière modification par B_Peter (Le 02/04/2023, à 13:04)


Linux Ubuntu 22.04.2 LTS
12th Gen Intel® Core™ i7-1260P × 16
64,0 Gio / Mesa Intel® Graphics (ADL GT2) Intel IRIS Xe

Hors ligne

#29 Le 02/04/2023, à 13:10

ylag

Re : Message d'erreurs au démarrage.

Re,

Au #28, B_Peter a écrit :

Je dois placer ceci en commentaire ?

/usr/local/sbin/num.sh &

Oui, ce n'est pas risqué comme manip à mon avis.

Je crois que le bit d'exécution est activé par la présence du  « x » dans les permissions du fichier.
On l'a vu dans le résultat de :

ls -l /etc/rc.local

Ce fichier doit être exécutable pour que le service rc-local puisse se lancer, il ne faut pas retirer la permission d'exécution de ce fichier.

A+

Dernière modification par ylag (Le 02/04/2023, à 13:14)

Hors ligne

#30 Le 02/04/2023, à 13:20

B_Peter

Re : Message d'erreurs au démarrage.

C'est fait, et visiblement, ça ne change rien.

Je remet en l'état ?

Le bout.log (au cas où

peter@peter-NS5x-NS7xPU:~$ sudo cat /var/log/boot.log
[sudo] Mot de passe de peter : 
------------ dim avr 02 13:38:34 CEST 2023 ------------
[  OK  ] Reached target Mounted snaps.
[  OK  ] Started Show Plymouth Boot Screen.
[  OK  ] Started Forward Password Requests to Plymouth Directory Watch.
[  OK  ] Reached target Local Encrypted Volumes.
         Starting Load Kernel Module chromeos_pstore...
         Starting Load Kernel Module efi_pstore...
         Starting Load Kernel Module pstore_blk...
         Starting Load Kernel Module pstore_zone...
         Starting Load Kernel Module ramoops...
[  OK  ] Finished Load Kernel Module efi_pstore.
[  OK  ] Finished Load Kernel Module pstore_blk.
[  OK  ] Finished Load Kernel Module pstore_zone.
[  OK  ] Finished Load Kernel Module ramoops.
         Starting Load Kernel Module efi_pstore...
         Starting Load Kernel Module pstore_blk...
         Starting Load Kernel Module pstore_zone...
[  OK  ] Finished Load Kernel Module efi_pstore.
[  OK  ] Finished Load Kernel Module pstore_blk.
[  OK  ] Finished Load Kernel Module pstore_zone.
[  OK  ] Found device Samsung SSD 980 1TB EFI\x20System\x20Partition.
         Starting File System Check on /dev/disk/by-uuid/A565-C81D...
[  OK  ] Started File System Check Daemon to report status.
[  OK  ] Finished File System Check on /dev/disk/by-uuid/A565-C81D.
         Mounting /boot/efi...
[  OK  ] Mounted /boot/efi.
[  OK  ] Reached target Local File Systems.
         Starting Load AppArmor profiles...
         Starting Set console font and keymap...
         Starting netfilter persistent configuration...
         Starting Tell Plymouth To Write Out Runtime Data...
         Starting Create Volatile Files and Directories...
         Starting Uncomplicated firewall...
[  OK  ] Finished Set console font and keymap.
[  OK  ] Finished Uncomplicated firewall.
[  OK  ] Listening on Load/Save RF Kill Switch Status /dev/rfkill Watch.
[  OK  ] Finished Tell Plymouth To Write Out Runtime Data.
[  OK  ] Finished Create Volatile Files and Directories.
         Starting Userspace Out-Of-Memory (OOM) Killer...
         Starting Network Name Resolution...
         Starting Network Time Synchronization...
         Starting Record System Boot/Shutdown in UTMP...
[  OK  ] Finished Record System Boot/Shutdown in UTMP.
[  OK  ] Created slice Slice /system/systemd-backlight.
         Starting Load/Save Screen Backlight Brightness of leds:rgb:kbd_backlight...
[  OK  ] Finished Load AppArmor profiles.
         Starting Load AppArmor profiles managed internally by snapd...
[  OK  ] Finished Load/Save Screen Backlight Brightness of leds:rgb:kbd_backlight.
         Mounting Arbitrary Executable File Formats File System...
[  OK  ] Started Userspace Out-Of-Memory (OOM) Killer.
[  OK  ] Started Network Time Synchronization.
[  OK  ] Reached target System Time Set.
[  OK  ] Finished netfilter persistent configuration.
[  OK  ] Reached target Preparation for Network.
         Starting Raise network interfaces...
[  OK  ] Started Network Name Resolution.
[  OK  ] Reached target Host and Network Name Lookups.
[  OK  ] Finished Raise network interfaces.
[  OK  ] Finished Load Kernel Module chromeos_pstore.
[  OK  ] Mounted Arbitrary Executable File Formats File System.
[  OK  ] Finished Load AppArmor profiles managed internally by snapd.
[  OK  ] Reached target System Initialization.
[  OK  ] Started ACPI Events Check.
[  OK  ] Started Process error reports when automatic reporting is enabled (file watch).
[  OK  ] Started CUPS Scheduler.
[  OK  ] Started resolvconf-pull-resolved.path.
[  OK  ] Started Start whoopsie on modification of the /var/crash directory.
[  OK  ] Started Trigger anacron every hour.
[  OK  ] Started Process error reports when automatic reporting is enabled (timer based).
[  OK  ] Started Daily apt download activities.
[  OK  ] Started Daily apt upgrade and clean activities.
[  OK  ] Started Daily dpkg database backup timer.
[  OK  ] Started Periodic ext4 Online Metadata Check for All Filesystems.
[  OK  ] Started Discard unused blocks once a week.
[  OK  ] Started Refresh fwupd metadata regularly.
[  OK  ] Started Daily rotation of log files.
[  OK  ] Started Daily man-db regeneration.
[  OK  ] Started Message of the Day.
[  OK  ] Started Daily Cleanup of Temporary Directories.
[  OK  ] Started Ubuntu Advantage Timer for running repeated jobs.
[  OK  ] Reached target Path Units.
[  OK  ] Listening on ACPID Listen Socket.
[  OK  ] Listening on Avahi mDNS/DNS-SD Stack Activation Socket.
[  OK  ] Listening on CUPS Scheduler.
[  OK  ] Listening on D-Bus System Message Bus Socket.
[  OK  ] Listening on PC/SC Smart Card Daemon Activation Socket.
         Starting Socket activation for snappy daemon...
[  OK  ] Listening on UUID daemon activation socket.
[  OK  ] Listening on Socket activation for snappy daemon.
[  OK  ] Reached target Socket Units.
[  OK  ] Reached target Basic System.
         Starting Accounts Service...
[  OK  ] Started ACPI event daemon.
[  OK  ] Started Run anacron jobs.
         Starting LSB: automatic crash report generation...
         Starting Avahi mDNS/DNS-SD Stack...
[  OK  ] Started Regular background program processing daemon.
[  OK  ] Started D-Bus System Message Bus.
         Starting Network Manager...
[  OK  ] Started Save initial kernel messages after boot.
         Starting Remove Stale Online ext4 Metadata Check Snapshots...
[  OK  ] Reached target Login Prompts.
         Starting Detect the available GPUs and deal with any system changes...
         Starting Record successful boot for GRUB...
[  OK  ] Started irqbalance daemon.
         Starting Dispatcher daemon for systemd-networkd...
         Starting Authorization Manager...
         Starting Power Profiles daemon...
         Starting resolvconf-pull-resolved.service...
         Starting System Logging Service...
         Starting Secure Boot updates for DB and DBX...
[  OK  ] Reached target Preparation for Logins.
         Starting Snap Daemon...
         Starting Switcheroo Control Proxy service...
         Starting User Login Management...
         Starting Thermal Daemon Service...
         Starting Disk Manager...
         Starting WPA supplicant...
[  OK  ] Started System Logging Service.
         Starting Load/Save RF Kill Switch Status...
[  OK  ] Started LSB: automatic crash report generation.
[  OK  ] Finished Detect the available GPUs and deal with any system changes.
[  OK  ] Finished Record successful boot for GRUB.
         Starting GRUB failed boot detection...
[  OK  ] Finished resolvconf-pull-resolved.service.
[  OK  ] Started WPA supplicant.
[  OK  ] Started Avahi mDNS/DNS-SD Stack.
[  OK  ] Started Thermal Daemon Service.
[  OK  ] Finished GRUB failed boot detection.
[  OK  ] Finished Secure Boot updates for DB and DBX.
[  OK  ] Started Authorization Manager.
         Starting Modem Manager...
         Starting Thunderbolt system service...
[  OK  ] Started Disk Manager.
[  OK  ] Started Dispatcher daemon for systemd-networkd.
[  OK  ] Started Load/Save RF Kill Switch Status.
         Starting Bluetooth service...
[  OK  ] Finished Remove Stale Online ext4 Metadata Check Snapshots.
[  OK  ] Started Network Manager.
[  OK  ] Reached target Network.
         Starting Network Manager Wait Online...
         Starting CUPS Scheduler...
         Starting OpenVPN service...
[  OK  ] Started Service for snap application cups.cups-browsed.
[  OK  ] Started Service for snap application cups.cupsd.
         Starting OpenBSD Secure Shell server...
         Starting Permit User Sessions...
[  OK  ] Finished OpenVPN service.
[  OK  ] Started Switcheroo Control Proxy service.
[  OK  ] Finished Permit User Sessions.
         Starting Hostname Service...
[  OK  ] Started Power Profiles daemon.
[  OK  ] Started Thunderbolt system service.
[  OK  ] Started Modem Manager.
[  OK  ] Started CUPS Scheduler.
[  OK  ] Started OpenBSD Secure Shell server.
[  OK  ] Started User Login Management.
[  OK  ] Started Unattended Upgrades Shutdown.
[  OK  ] Started Bluetooth service.
[  OK  ] Reached target Bluetooth Support.
[  OK  ] Started Accounts Service.
[  OK  ] Started Hostname Service.
         Starting Network Manager Script Dispatcher Service...
[  OK  ] Started Network Manager Script Dispatcher Service.
         Starting Daemon for power management...
[  OK  ] Started Daemon for power management.
[  OK  ] Started Snap Daemon.
         Starting Wait until snapd is fully seeded...
         Starting Time & Date Service...
[  OK  ] Started Time & Date Service.
[  OK  ] Finished Wait until snapd is fully seeded.
         Starting Load/Save Screen Backlight Brightness of backlight:intel_backlight...
         Starting Save/Restore Sound Card State...
[  OK  ] Finished Save/Restore Sound Card State.
[  OK  ] Reached target Sound Card.
[  OK  ] Finished Load/Save Screen Backlight Brightness of backlight:intel_backlight.
[  OK  ] Finished Network Manager Wait Online.
[  OK  ] Reached target Network is Online.
[  OK  ] Started Download data for packages that failed at package install time.
[  OK  ] Started Check to see whether there is a new version of Ubuntu available.
[  OK  ] Reached target Timer Units.
[  OK  ] Started Make remote CUPS printers available locally.
         Starting Tool to automatically collect and submit kernel crash signatures...
         Starting Postfix Mail Transport Agent (instance -)...
         Starting /etc/rc.local Compatibility...
         Starting TeamViewer remote control daemon...
[   40.228292] rc.local[1709]: Error opening display!
[  OK  ] Started Tool to automatically collect and submit kernel crash signatures.
[FAILED] Failed to start /etc/rc.local Compatibility.
See 'systemctl status rc-local.service' for details.
         Starting GNOME Display Manager...
         Starting Hold until boot process finishes up...
[  OK  ] Started TeamViewer remote control daemon.
[  OK  ] Started GNOME Display Manager.
------------ dim avr 02 14:17:20 CEST 2023 ------------
[  OK  ] Started Show Plymouth Boot Screen.
[  OK  ] Started Forward Password Requests to Plymouth Directory Watch.
[  OK  ] Reached target Local Encrypted Volumes.
         Starting Load Kernel Module chromeos_pstore...
         Starting Load Kernel Module efi_pstore...
         Starting Load Kernel Module pstore_blk...
         Starting Load Kernel Module pstore_zone...
         Starting Load Kernel Module ramoops...
[  OK  ] Finished Load Kernel Module efi_pstore.
[  OK  ] Finished Load Kernel Module pstore_blk.
[  OK  ] Finished Load Kernel Module pstore_zone.
[  OK  ] Finished Load Kernel Module ramoops.
[  OK  ] Found device Samsung SSD 980 1TB EFI\x20System\x20Partition.
         Starting File System Check on /dev/disk/by-uuid/A565-C81D...
[  OK  ] Started File System Check Daemon to report status.
[  OK  ] Finished File System Check on /dev/disk/by-uuid/A565-C81D.
         Mounting /boot/efi...
[  OK  ] Listening on Load/Save RF Kill Switch Status /dev/rfkill Watch.
[  OK  ] Created slice Slice /system/systemd-backlight.
         Starting Load/Save Screen Backlight Brightness of leds:rgb:kbd_backlight...
[  OK  ] Finished Load/Save Screen Backlight Brightness of leds:rgb:kbd_backlight.
[  OK  ] Finished Load Kernel Module chromeos_pstore.
[  OK  ] Mounted /boot/efi.
[  OK  ] Reached target Local File Systems.
         Starting Load AppArmor profiles...
         Starting Set console font and keymap...
         Starting netfilter persistent configuration...
         Starting Tell Plymouth To Write Out Runtime Data...
         Starting Create Volatile Files and Directories...
         Starting Uncomplicated firewall...
[  OK  ] Finished Set console font and keymap.
[  OK  ] Finished Uncomplicated firewall.
[  OK  ] Finished Tell Plymouth To Write Out Runtime Data.
[  OK  ] Finished Create Volatile Files and Directories.
         Starting Userspace Out-Of-Memory (OOM) Killer...
         Starting Network Name Resolution...
         Starting Network Time Synchronization...
         Starting Record System Boot/Shutdown in UTMP...
[  OK  ] Finished netfilter persistent configuration.
[  OK  ] Reached target Preparation for Network.
[  OK  ] Finished Load AppArmor profiles.
         Starting Raise network interfaces...
         Starting Load AppArmor profiles managed internally by snapd...
[  OK  ] Finished Record System Boot/Shutdown in UTMP.
         Mounting Arbitrary Executable File Formats File System...
[  OK  ] Mounted Arbitrary Executable File Formats File System.
[  OK  ] Finished Raise network interfaces.
[  OK  ] Started Network Time Synchronization.
[  OK  ] Reached target System Time Set.
[  OK  ] Started Userspace Out-Of-Memory (OOM) Killer.
[  OK  ] Finished Load AppArmor profiles managed internally by snapd.
[  OK  ] Reached target System Initialization.
[  OK  ] Started ACPI Events Check.
[  OK  ] Started Process error reports when automatic reporting is enabled (file watch).
[  OK  ] Started CUPS Scheduler.
[  OK  ] Started resolvconf-pull-resolved.path.
[  OK  ] Started Start whoopsie on modification of the /var/crash directory.
[  OK  ] Started Trigger anacron every hour.
[  OK  ] Started Process error reports when automatic reporting is enabled (timer based).
[  OK  ] Started Daily apt download activities.
[  OK  ] Started Daily apt upgrade and clean activities.
[  OK  ] Started Daily dpkg database backup timer.
[  OK  ] Started Periodic ext4 Online Metadata Check for All Filesystems.
[  OK  ] Started Discard unused blocks once a week.
[  OK  ] Started Refresh fwupd metadata regularly.
[  OK  ] Started Daily rotation of log files.
[  OK  ] Started Daily man-db regeneration.
[  OK  ] Started Message of the Day.
[  OK  ] Started Daily Cleanup of Temporary Directories.
[  OK  ] Started Ubuntu Advantage Timer for running repeated jobs.
[  OK  ] Reached target Path Units.
[  OK  ] Listening on ACPID Listen Socket.
[  OK  ] Listening on Avahi mDNS/DNS-SD Stack Activation Socket.
[  OK  ] Listening on CUPS Scheduler.
[  OK  ] Listening on D-Bus System Message Bus Socket.
[  OK  ] Listening on PC/SC Smart Card Daemon Activation Socket.
         Starting Socket activation for snappy daemon...
[  OK  ] Listening on UUID daemon activation socket.
[  OK  ] Listening on Socket activation for snappy daemon.
[  OK  ] Reached target Socket Units.
[  OK  ] Reached target Basic System.
         Starting Accounts Service...
[  OK  ] Started ACPI event daemon.
[  OK  ] Started Run anacron jobs.
         Starting LSB: automatic crash report generation...
         Starting Avahi mDNS/DNS-SD Stack...
[  OK  ] Started Regular background program processing daemon.
[  OK  ] Started D-Bus System Message Bus.
         Starting Network Manager...
[  OK  ] Started Save initial kernel messages after boot.
         Starting Remove Stale Online ext4 Metadata Check Snapshots...
[  OK  ] Reached target Login Prompts.
         Starting Detect the available GPUs and deal with any system changes...
         Starting Record successful boot for GRUB...
[  OK  ] Started irqbalance daemon.
         Starting Dispatcher daemon for systemd-networkd...
         Starting Authorization Manager...
         Starting Power Profiles daemon...
         Starting System Logging Service...
         Starting Secure Boot updates for DB and DBX...
[  OK  ] Reached target Preparation for Logins.
         Starting Snap Daemon...
         Starting Switcheroo Control Proxy service...
         Starting User Login Management...
         Starting Load/Save RF Kill Switch Status...
         Starting Thermal Daemon Service...
         Starting Disk Manager...
         Starting WPA supplicant...
[  OK  ] Started System Logging Service.
[  OK  ] Started LSB: automatic crash report generation.
[  OK  ] Finished Record successful boot for GRUB.
[  OK  ] Started Load/Save RF Kill Switch Status.
         Starting Bluetooth service...
         Starting GRUB failed boot detection...
[  OK  ] Started Thermal Daemon Service.
[  OK  ] Started Avahi mDNS/DNS-SD Stack.
[  OK  ] Started WPA supplicant.
[  OK  ] Started Network Manager.
         Starting Network Manager Wait Online...
[  OK  ] Started Switcheroo Control Proxy service.
[  OK  ] Finished Secure Boot updates for DB and DBX.
[  OK  ] Finished Detect the available GPUs and deal with any system changes.
[  OK  ] Finished GRUB failed boot detection.
[  OK  ] Started Authorization Manager.
         Starting Modem Manager...
         Starting Thunderbolt system service...
[  OK  ] Started Power Profiles daemon.
[  OK  ] Started User Login Management.
[  OK  ] Started Disk Manager.
[  OK  ] Started Thunderbolt system service.
[  OK  ] Started Network Name Resolution.
[  OK  ] Reached target Network.
[  OK  ] Reached target Host and Network Name Lookups.
         Starting CUPS Scheduler...
         Starting OpenVPN service...
         Starting resolvconf-pull-resolved.service...
[  OK  ] Started Service for snap application cups.cups-browsed.
[  OK  ] Started Service for snap application cups.cupsd.
         Starting OpenBSD Secure Shell server...
         Starting Permit User Sessions...
[  OK  ] Started Unattended Upgrades Shutdown.
[  OK  ] Started Dispatcher daemon for systemd-networkd.
[  OK  ] Finished OpenVPN service.
[  OK  ] Finished Permit User Sessions.
[  OK  ] Started Modem Manager.
[  OK  ] Started Bluetooth service.
[  OK  ] Reached target Bluetooth Support.
         Starting Hostname Service...
[  OK  ] Finished resolvconf-pull-resolved.service.
[  OK  ] Started CUPS Scheduler.
[  OK  ] Finished Remove Stale Onli…ext4 Metadata Check Snapshots.
[  OK  ] Started Accounts Service.
[  OK  ] Started OpenBSD Secure Shell server.
[  OK  ] Started Hostname Service.
         Starting Network Manager Script Dispatcher Service...
[  OK  ] Started Network Manager Script Dispatcher Service.
         Starting Daemon for power management...
[  OK  ] Started Daemon for power management.
[  OK  ] Started Snap Daemon.
         Starting Wait until snapd is fully seeded...
         Starting Time & Date Service...
[  OK  ] Started Time & Date Service.
[  OK  ] Finished Wait until snapd is fully seeded.
         Starting Load/Save Screen Backlight Brightness of backlight:intel_backlight...
         Starting Save/Restore Sound Card State...
[  OK  ] Finished Save/Restore Sound Card State.
[  OK  ] Reached target Sound Card.
[  OK  ] Finished Load/Save Screen Backlight Brightness of backlight:intel_backlight.
[  OK  ] Finished Network Manager Wait Online.
[  OK  ] Reached target Network is Online.
[  OK  ] Started Download data for packages that failed at package install time.
[  OK  ] Started Check to see whether there is a new version of Ubuntu available.
[  OK  ] Reached target Timer Units.
[  OK  ] Started Make remote CUPS printers available locally.
         Starting Tool to automatically collect and submit kernel crash signatures...
         Starting Postfix Mail Transport Agent (instance -)...
         Starting /etc/rc.local Compatibility...
         Starting TeamViewer remote control daemon...
[   40.061169] rc.local[1699]: Error opening display!
[FAILED] Failed to start /etc/rc.local Compatibility.
See 'systemctl status rc-local.service' for details.
         Starting GNOME Display Manager...
         Starting Hold until boot process finishes up...
[  OK  ] Started Tool to automatically collect and submit kernel crash signatures.
[  OK  ] Started TeamViewer remote control daemon.
[  OK  ] Started GNOME Display Manager.
peter@peter-NS5x-NS7xPU:~$ 

A la fin du fichier :

[   40.061169] rc.local[1699]: Error opening display!
[FAILED] Failed to start /etc/rc.local Compatibility.
See 'systemctl status rc-local.service' for details.

Dernière modification par B_Peter (Le 02/04/2023, à 13:23)


Linux Ubuntu 22.04.2 LTS
12th Gen Intel® Core™ i7-1260P × 16
64,0 Gio / Mesa Intel® Graphics (ADL GT2) Intel IRIS Xe

Hors ligne

#31 Le 02/04/2023, à 13:28

ylag

Re : Message d'erreurs au démarrage.

B_Peter a écrit :

Je remet en l'état ?

Alors, désolé pour cette fausse piste ...
Tu peux remettre en l'état si désiré.
Je sèche dans ce cas.

Peut-être revérifier le résultat de (en ayant pris soin de maximiser la fenêtre du terminal) :

systemctl status rc-local.service

A+

Dernière modification par ylag (Le 02/04/2023, à 13:34)

Hors ligne

#32 Le 02/04/2023, à 13:36

B_Peter

Re : Message d'erreurs au démarrage.

Voici :

peter@peter-NS5x-NS7xPU:~$ systemctl status rc-local.service
× rc-local.service - /etc/rc.local Compatibility
     Loaded: loaded (/lib/systemd/system/rc-local.service; enabled-runtime; vendor preset: enabled)
    Drop-In: /usr/lib/systemd/system/rc-local.service.d
             └─debian.conf
     Active: failed (Result: exit-code) since Sun 2023-04-02 14:17:24 CEST; 15min ago
       Docs: man:systemd-rc-local-generator(8)
    Process: 1694 ExecStart=/etc/rc.local start (code=exited, status=1/FAILURE)
        CPU: 1ms

avr 02 14:17:24 peter-NS5x-NS7xPU systemd[1]: Starting /etc/rc.local Compatibility...
avr 02 14:17:24 peter-NS5x-NS7xPU rc.local[1699]: Error opening display!
avr 02 14:17:24 peter-NS5x-NS7xPU systemd[1]: rc-local.service: Control process exited, code=exited, status=1/FAILURE
avr 02 14:17:24 peter-NS5x-NS7xPU systemd[1]: rc-local.service: Failed with result 'exit-code'.
avr 02 14:17:24 peter-NS5x-NS7xPU systemd[1]: Failed to start /etc/rc.local Compatibility.
peter@peter-NS5x-NS7xPU:~$ 

- rc.local[1699]: Error opening display!

- systemd[1]: rc-local.service: Control process exited, code=exited, status=1/FAILURE

-systemd[1]: rc-local.service: Failed with result 'exit-code'.

La boucle est là
Et ceci ?  Error opening display! 
Quelqu’un sait ce que ça signifie ?

Dernière modification par B_Peter (Le 02/04/2023, à 13:41)


Linux Ubuntu 22.04.2 LTS
12th Gen Intel® Core™ i7-1260P × 16
64,0 Gio / Mesa Intel® Graphics (ADL GT2) Intel IRIS Xe

Hors ligne

#33 Le 02/04/2023, à 13:41

ylag

Re : Message d'erreurs au démarrage.

Bonjour,

En recherchant sur le Web avec l'erreur «rc.local[1699]: Error opening display!», il serait possible que la cause du souci soit en lien avec la présence de la commande :

[ -x /usr/bin/numlockx ] && numlockx on

... et aussi donc de la commande numlockx on qui se retrouvait dans le script num.sh .

A+

Dernière modification par ylag (Le 02/04/2023, à 13:42)

Hors ligne

#34 Le 02/04/2023, à 13:45

B_Peter

Re : Message d'erreurs au démarrage.

ylag a écrit :

Bonjour,

En recherchant sur le Web avec l'erreur «rc.local[1699]: Error opening display!», il serait possible que la cause du souci soit en lien avec la présence de la commande :

[ -x /usr/bin/numlockx ] && numlockx on

... et aussi donc de la commande numlockx on qui se retrouvait dans le script num.sh .

A+

Voici le num.sh

#!/bin/bash
sed -i '/WaylandEnable/s/^#//g' /etc/gdm3/custom.conf
sleep 4
gdm=`pidof gdm3`
#until [ $gdm -gt 0 ] do
su gdm -s /bin/bash
export $(dbus-launch)
export XAUTHORITY=/run/user/1000/gdm/Xauthority
export XAUTHORITY=/run/user/121/gdm/Xauthority
xhost +SI:localuser:gdm
DISPLAY=:0
export DISPLAY
numlockx on
gsettings set org.gnome.settings-daemon.peripherals.keyboard numlock-state on
su - gdm -s /bin/bash -c "gsettings set org.gnome.settings-daemon.peripherals.keyboard numlock-state on"
#gsettings set org.gnome.settings-daemon.peripherals.keyboard numlock-state 'on'
exit
peter@peter-NS5x-NS7xPU:~$ cat /etc/rc.local
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.


/usr/local/sbin/num.sh &
# Numlock enable
[ -x /usr/bin/numlockx ] && numlockx on

exit 0peter@peter-NS5x-NS7xPU:~$ 

Ceci, ça aide ?

peter@peter-NS5x-NS7xPU:~$ journalctl -u rc-local
mar 23 12:42:34 ubuntu systemd[1]: Starting /etc/rc.local Compatibility...
mar 23 12:42:34 ubuntu systemd[1]: Started /etc/rc.local Compatibility.
mar 23 12:43:04 ubuntu su[2245]: (to oem) root on none
mar 23 12:43:04 ubuntu su[2245]: pam_unix(su-l:session): session opened for use>
mar 23 12:43:04 ubuntu su[2245]: pam_unix(su-l:session): session closed for use>
mar 23 12:43:04 ubuntu sudo[2256]:     root : PWD=/ ; USER=root ; COMMAND=/usr/>
mar 23 12:43:04 ubuntu sudo[2256]: pam_unix(sudo:session): session opened for u>
mar 23 12:43:04 ubuntu rc.local[2246]: kill: (2252): Aucun processus de ce type
mar 23 12:43:04 ubuntu sudo[2256]: pam_unix(sudo:session): session closed for u>
mar 23 12:43:04 ubuntu sudo[2262]:     root : PWD=/ ; USER=root ; COMMAND=/usr/>
mar 23 12:43:04 ubuntu sudo[2262]: pam_unix(sudo:session): session opened for u>
mar 23 12:43:04 ubuntu rc.local[2246]: kill: (2259): Aucun processus de ce type
mar 23 12:43:04 ubuntu sudo[2262]: pam_unix(sudo:session): session closed for u>
mar 23 12:43:04 ubuntu sudo[2294]:     root : PWD=/ ; USER=root ; COMMAND=/usr/>
mar 23 12:43:04 ubuntu sudo[2294]: pam_unix(sudo:session): session opened for u>
mar 23 12:43:04 ubuntu rc.local[2246]: kill: (2278): Aucun processus de ce type
mar 23 12:43:04 ubuntu sudo[2294]: pam_unix(sudo:session): session closed for u>
mar 23 12:43:04 ubuntu su[2297]: (to oem) root on none
mar 23 12:43:04 ubuntu su[2297]: pam_unix(su-l:session): session opened for use>
mar 23 12:43:04 ubuntu rc.local[2246]: Lecture des listes de paquets…# L’option>
mar 23 12:43:04 ubuntu rc.local[2246]: # Utilisez « --  » pour marquer la fin d>
mar 23 12:43:04 ubuntu su[2297]: pam_unix(su-l:session): session closed for use>
mar 23 12:43:05 ubuntu rc.local[2246]: Construction de l'arbre des dépendances…
lines 1-23...skipping...
mar 23 12:42:34 ubuntu systemd[1]: Starting /etc/rc.local Compatibility...
mar 23 12:42:34 ubuntu systemd[1]: Started /etc/rc.local Compatibility.
mar 23 12:43:04 ubuntu su[2245]: (to oem) root on none
mar 23 12:43:04 ubuntu su[2245]: pam_unix(su-l:session): session opened for user oem(uid=1000) by (uid=0)
mar 23 12:43:04 ubuntu su[2245]: pam_unix(su-l:session): session closed for user oem
mar 23 12:43:04 ubuntu sudo[2256]:     root : PWD=/ ; USER=root ; COMMAND=/usr/bin/kill -9 2252
mar 23 12:43:04 ubuntu sudo[2256]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=0)
mar 23 12:43:04 ubuntu rc.local[2246]: kill: (2252): Aucun processus de ce type
mar 23 12:43:04 ubuntu sudo[2256]: pam_unix(sudo:session): session closed for user root
mar 23 12:43:04 ubuntu sudo[2262]:     root : PWD=/ ; USER=root ; COMMAND=/usr/bin/kill -9 984 2259
mar 23 12:43:04 ubuntu sudo[2262]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=0)
mar 23 12:43:04 ubuntu rc.local[2246]: kill: (2259): Aucun processus de ce type
mar 23 12:43:04 ubuntu sudo[2262]: pam_unix(sudo:session): session closed for user root
mar 23 12:43:04 ubuntu sudo[2294]:     root : PWD=/ ; USER=root ; COMMAND=/usr/bin/kill -9 2278
mar 23 12:43:04 ubuntu sudo[2294]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=0)
mar 23 12:43:04 ubuntu rc.local[2246]: kill: (2278): Aucun processus de ce type
mar 23 12:43:04 ubuntu sudo[2294]: pam_unix(sudo:session): session closed for user root
mar 23 12:43:04 ubuntu su[2297]: (to oem) root on none
mar 23 12:43:04 ubuntu su[2297]: pam_unix(su-l:session): session opened for user oem(uid=1000) by (uid=0)
mar 23 12:43:04 ubuntu rc.local[2246]: Lecture des listes de paquets…# L’option « -e » est obsolète et pourrait être supprimée dans une prochaine version de gnome-terminal.
mar 23 12:43:04 ubuntu rc.local[2246]: # Utilisez « --  » pour marquer la fin des options et placez la ligne de commande à exécuter ensuite.
mar 23 12:43:04 ubuntu su[2297]: pam_unix(su-l:session): session closed for user oem
mar 23 12:43:05 ubuntu rc.local[2246]: Construction de l'arbre des dépendances…
mar 23 12:43:05 ubuntu rc.local[2246]: Lecture des informations d'état…
mar 23 12:43:05 ubuntu rc.local[2246]: Les paquets suivants ont été installés automatiquement et ne sont plus nécessaires :
mar 23 12:43:05 ubuntu rc.local[2246]:   chromium-codecs-ffmpeg-extra gstreamer1.0-vaapi i965-va-driver
mar 23 12:43:05 ubuntu rc.local[2246]:   intel-media-va-driver libaacs0 libaom3 libass9 libavcodec58 libavformat58
mar 23 12:43:05 ubuntu rc.local[2246]:   libavutil56 libbdplus0 libblas3 libbluray2 libbs2b0 libchromaprint1
mar 23 12:43:05 ubuntu rc.local[2246]:   libcodec2-1.0 libdav1d5 libflite1 libgme0 libgsm1
mar 23 12:43:05 ubuntu rc.local[2246]:   libgstreamer-plugins-bad1.0-0 libigdgmm12 liblilv-0-0 libllvm15 libmfx1
mar 23 12:43:05 ubuntu rc.local[2246]:   libmysofa1 libnorm1 libopenmpt0 libpgm-5.3-0 libpostproc55 librabbitmq4
mar 23 12:43:05 ubuntu rc.local[2246]:   librubberband2 libserd-0-0 libshine3 libsnappy1v5 libsord-0-0 libsratom-0-0
mar 23 12:43:05 ubuntu rc.local[2246]:   libsrt1.4-gnutls libssh-gcrypt-4 libswresample3 libswscale5 libudfread0
mar 23 12:43:05 ubuntu rc.local[2246]:   libva-drm2 libva-wayland2 libva-x11-2 libva2 libvdpau1 libvidstab1.1
mar 23 12:43:05 ubuntu rc.local[2246]:   libx265-199 libxvidcore4 libzimg2 libzmq5 libzvbi-common libzvbi0
mar 23 12:43:05 ubuntu rc.local[2246]:   mesa-va-drivers mesa-vdpau-drivers pocketsphinx-en-us systemd-hwe-hwdb
mar 23 12:43:05 ubuntu rc.local[2246]:   va-driver-all vdpau-driver-all
mar 23 12:43:05 ubuntu rc.local[2246]: Veuillez utiliser « apt autoremove » pour les supprimer.
mar 23 12:43:05 ubuntu rc.local[2246]: 0 mis à jour, 0 nouvellement installés, 0 à enlever et 417 non mis à jour.
mar 23 12:43:06 ubuntu rc.local[2246]: WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
mar 23 12:43:06 ubuntu rc.local[2246]: Atteint :1 http://archive.ubuntu.com/ubuntu jammy InRelease
mar 23 12:43:06 ubuntu rc.local[2246]: Atteint :2 http://security.ubuntu.com/ubuntu jammy-security InRelease
mar 23 12:43:06 ubuntu rc.local[2246]: Atteint :3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
mar 23 12:43:06 ubuntu rc.local[2246]: Atteint :4 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
mar 23 12:43:11 ubuntu rc.local[2246]: Lecture des listes de paquets…
mar 23 12:43:11 ubuntu rc.local[2246]: Construction de l'arbre des dépendances…
mar 23 12:43:11 ubuntu rc.local[2246]: Lecture des informations d'état…
mar 23 12:43:12 ubuntu rc.local[2246]: 417 paquets peuvent être mis à jour. Exécutez « apt list --upgradable » pour les voir.
mar 23 12:43:12 ubuntu rc.local[2246]: Lecture des listes de paquets…
mar 23 12:43:12 ubuntu rc.local[2246]: Construction de l'arbre des dépendances…
mar 23 12:43:12 ubuntu rc.local[2246]: Lecture des informations d'état…
mar 23 12:43:12 ubuntu rc.local[2246]: Les paquets suivants ont été installés automatiquement et ne sont plus nécessaires :
mar 23 12:43:12 ubuntu rc.local[2246]:   chromium-codecs-ffmpeg-extra gstreamer1.0-vaapi i965-va-driver
mar 23 12:43:12 ubuntu rc.local[2246]:   intel-media-va-driver libaacs0 libaom3 libass9 libavcodec58 libavformat58
mar 23 12:43:12 ubuntu rc.local[2246]:   libavutil56 libbdplus0 libblas3 libbluray2 libbs2b0 libchromaprint1
mar 23 12:43:12 ubuntu rc.local[2246]:   libcodec2-1.0 libdav1d5 libflite1 libgme0 libgsm1
mar 23 12:43:12 ubuntu rc.local[2246]:   libgstreamer-plugins-bad1.0-0 libigdgmm12 liblilv-0-0 libllvm15 libmfx1
mar 23 12:43:12 ubuntu rc.local[2246]:   libmysofa1 libnorm1 libopenmpt0 libpgm-5.3-0 libpostproc55 librabbitmq4
mar 23 12:43:12 ubuntu rc.local[2246]:   librubberband2 libserd-0-0 libshine3 libsnappy1v5 libsord-0-0 libsratom-0-0
mar 23 12:43:12 ubuntu rc.local[2246]:   libsrt1.4-gnutls libssh-gcrypt-4 libswresample3 libswscale5 libudfread0
mar 23 12:43:12 ubuntu rc.local[2246]:   libva-drm2 libva-wayland2 libva-x11-2 libva2 libvdpau1 libvidstab1.1
mar 23 12:43:12 ubuntu rc.local[2246]:   libx265-199 libxvidcore4 libzimg2 libzmq5 libzvbi-common libzvbi0
mar 23 12:43:12 ubuntu rc.local[2246]:   mesa-va-drivers mesa-vdpau-drivers pocketsphinx-en-us systemd-hwe-hwdb
mar 23 12:43:12 ubuntu rc.local[2246]:   va-driver-all vdpau-driver-all
mar 23 12:43:12 ubuntu rc.local[2246]: Veuillez utiliser « apt autoremove » pour les supprimer.
mar 23 12:43:12 ubuntu rc.local[2246]: 0 mis à jour, 0 nouvellement installés, 0 à enlever et 417 non mis à jour.
mar 23 12:43:12 ubuntu rc.local[2246]: Atteint :1 http://archive.ubuntu.com/ubuntu jammy InRelease
mar 23 12:43:12 ubuntu rc.local[2246]: Atteint :2 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
mar 23 12:43:12 ubuntu rc.local[2246]: Réception de :3 http://archive.ubuntu.com/ubuntu jammy-backports InRelease [107 kB]
mar 23 12:43:13 ubuntu rc.local[2246]: Réception de :4 http://archive.canonical.com jammy InRelease [11,4 kB]
mar 23 12:43:13 ubuntu rc.local[2246]: Atteint :5 http://security.ubuntu.com/ubuntu jammy-security InRelease
mar 23 12:43:18 ubuntu rc.local[2246]: 118 ko réceptionnés en 0s (335 ko/s)
mar 23 12:43:18 ubuntu rc.local[2246]: Lecture des listes de paquets…
mar 23 12:43:18 ubuntu rc.local[2246]: Dépôt : « deb http://archive.canonical.com/ jammy partner »
mar 23 12:43:18 ubuntu rc.local[2246]: Description :
mar 23 12:43:18 ubuntu rc.local[2246]: Archive for codename: jammy components: partner
mar 23 12:43:18 ubuntu rc.local[2246]: Plus d'informations : http://archive.canonical.com/
lines 1-77











































































mar 23 12:42:34 ubuntu systemd[1]: Starting /etc/rc.local Compatibility...
mar 23 12:42:34 ubuntu systemd[1]: Started /etc/rc.local Compatibility.
mar 23 12:43:04 ubuntu su[2245]: (to oem) root on none
mar 23 12:43:04 ubuntu su[2245]: pam_unix(su-l:session): session opened for user oem(uid=1000) by (uid=0)
mar 23 12:43:04 ubuntu su[2245]: pam_unix(su-l:session): session closed for user oem
mar 23 12:43:04 ubuntu sudo[2256]:     root : PWD=/ ; USER=root ; COMMAND=/usr/bin/kill -9 2252
mar 23 12:43:04 ubuntu sudo[2256]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=0)
mar 23 12:43:04 ubuntu rc.local[2246]: kill: (2252): Aucun processus de ce type
mar 23 12:43:04 ubuntu sudo[2256]: pam_unix(sudo:session): session closed for user root
mar 23 12:43:04 ubuntu sudo[2262]:     root : PWD=/ ; USER=root ; COMMAND=/usr/bin/kill -9 984 2259
mar 23 12:43:04 ubuntu sudo[2262]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=0)
mar 23 12:43:04 ubuntu rc.local[2246]: kill: (2259): Aucun processus de ce type
mar 23 12:43:04 ubuntu sudo[2262]: pam_unix(sudo:session): session closed for user root
mar 23 12:43:04 ubuntu sudo[2294]:     root : PWD=/ ; USER=root ; COMMAND=/usr/bin/kill -9 2278
mar 23 12:43:04 ubuntu sudo[2294]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=0)
mar 23 12:43:04 ubuntu rc.local[2246]: kill: (2278): Aucun processus de ce type
mar 23 12:43:04 ubuntu sudo[2294]: pam_unix(sudo:session): session closed for user root
mar 23 12:43:04 ubuntu su[2297]: (to oem) root on none
mar 23 12:43:04 ubuntu su[2297]: pam_unix(su-l:session): session opened for user oem(uid=1000) by (uid=0)
mar 23 12:43:04 ubuntu rc.local[2246]: Lecture des listes de paquets…# L’option « -e » est obsolète et pourrait être supprimée dans une prochaine version de gnome-terminal.
mar 23 12:43:04 ubuntu rc.local[2246]: # Utilisez « --  » pour marquer la fin des options et placez la ligne de commande à exécuter ensuite.
mar 23 12:43:04 ubuntu su[2297]: pam_unix(su-l:session): session closed for user oem
mar 23 12:43:05 ubuntu rc.local[2246]: Construction de l'arbre des dépendances…
mar 23 12:43:05 ubuntu rc.local[2246]: Lecture des informations d'état…
mar 23 12:43:05 ubuntu rc.local[2246]: Les paquets suivants ont été installés automatiquement et ne sont plus nécessaires :
mar 23 12:43:05 ubuntu rc.local[2246]:   chromium-codecs-ffmpeg-extra gstreamer1.0-vaapi i965-va-driver
mar 23 12:43:05 ubuntu rc.local[2246]:   intel-media-va-driver libaacs0 libaom3 libass9 libavcodec58 libavformat58
mar 23 12:43:05 ubuntu rc.local[2246]:   libavutil56 libbdplus0 libblas3 libbluray2 libbs2b0 libchromaprint1
mar 23 12:43:05 ubuntu rc.local[2246]:   libcodec2-1.0 libdav1d5 libflite1 libgme0 libgsm1
mar 23 12:43:05 ubuntu rc.local[2246]:   libgstreamer-plugins-bad1.0-0 libigdgmm12 liblilv-0-0 libllvm15 libmfx1
mar 23 12:43:05 ubuntu rc.local[2246]:   libmysofa1 libnorm1 libopenmpt0 libpgm-5.3-0 libpostproc55 librabbitmq4
mar 23 12:43:05 ubuntu rc.local[2246]:   librubberband2 libserd-0-0 libshine3 libsnappy1v5 libsord-0-0 libsratom-0-0
mar 23 12:43:05 ubuntu rc.local[2246]:   libsrt1.4-gnutls libssh-gcrypt-4 libswresample3 libswscale5 libudfread0
mar 23 12:43:05 ubuntu rc.local[2246]:   libva-drm2 libva-wayland2 libva-x11-2 libva2 libvdpau1 libvidstab1.1
mar 23 12:43:05 ubuntu rc.local[2246]:   libx265-199 libxvidcore4 libzimg2 libzmq5 libzvbi-common libzvbi0
mar 23 12:43:05 ubuntu rc.local[2246]:   mesa-va-drivers mesa-vdpau-drivers pocketsphinx-en-us systemd-hwe-hwdb
mar 23 12:43:05 ubuntu rc.local[2246]:   va-driver-all vdpau-driver-all
mar 23 12:43:05 ubuntu rc.local[2246]: Veuillez utiliser « apt autoremove » pour les supprimer.
mar 23 12:43:05 ubuntu rc.local[2246]: 0 mis à jour, 0 nouvellement installés, 0 à enlever et 417 non mis à jour.
mar 23 12:43:06 ubuntu rc.local[2246]: WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
mar 23 12:43:06 ubuntu rc.local[2246]: Atteint :1 http://archive.ubuntu.com/ubuntu jammy InRelease
mar 23 12:43:06 ubuntu rc.local[2246]: Atteint :2 http://security.ubuntu.com/ubuntu jammy-security InRelease
mar 23 12:43:06 ubuntu rc.local[2246]: Atteint :3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
mar 23 12:43:06 ubuntu rc.local[2246]: Atteint :4 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
mar 23 12:43:11 ubuntu rc.local[2246]: Lecture des listes de paquets…
mar 23 12:43:11 ubuntu rc.local[2246]: Construction de l'arbre des dépendances…
mar 23 12:43:11 ubuntu rc.local[2246]: Lecture des informations d'état…
mar 23 12:43:12 ubuntu rc.local[2246]: 417 paquets peuvent être mis à jour. Exécutez « apt list --upgradable » pour les voir.
mar 23 12:43:12 ubuntu rc.local[2246]: Lecture des listes de paquets…
mar 23 12:43:12 ubuntu rc.local[2246]: Construction de l'arbre des dépendances…
mar 23 12:43:12 ubuntu rc.local[2246]: Lecture des informations d'état…
mar 23 12:43:12 ubuntu rc.local[2246]: Les paquets suivants ont été installés automatiquement et ne sont plus nécessaires :
mar 23 12:43:12 ubuntu rc.local[2246]:   chromium-codecs-ffmpeg-extra gstreamer1.0-vaapi i965-va-driver
mar 23 12:43:12 ubuntu rc.local[2246]:   intel-media-va-driver libaacs0 libaom3 libass9 libavcodec58 libavformat58
mar 23 12:43:12 ubuntu rc.local[2246]:   libavutil56 libbdplus0 libblas3 libbluray2 libbs2b0 libchromaprint1
mar 23 12:43:12 ubuntu rc.local[2246]:   libcodec2-1.0 libdav1d5 libflite1 libgme0 libgsm1
mar 23 12:43:12 ubuntu rc.local[2246]:   libgstreamer-plugins-bad1.0-0 libigdgmm12 liblilv-0-0 libllvm15 libmfx1
mar 23 12:43:12 ubuntu rc.local[2246]:   libmysofa1 libnorm1 libopenmpt0 libpgm-5.3-0 libpostproc55 librabbitmq4
mar 23 12:43:12 ubuntu rc.local[2246]:   librubberband2 libserd-0-0 libshine3 libsnappy1v5 libsord-0-0 libsratom-0-0
mar 23 12:43:12 ubuntu rc.local[2246]:   libsrt1.4-gnutls libssh-gcrypt-4 libswresample3 libswscale5 libudfread0
mar 23 12:43:12 ubuntu rc.local[2246]:   libva-drm2 libva-wayland2 libva-x11-2 libva2 libvdpau1 libvidstab1.1
mar 23 12:43:12 ubuntu rc.local[2246]:   libx265-199 libxvidcore4 libzimg2 libzmq5 libzvbi-common libzvbi0
mar 23 12:43:12 ubuntu rc.local[2246]:   mesa-va-drivers mesa-vdpau-drivers pocketsphinx-en-us systemd-hwe-hwdb
mar 23 12:43:12 ubuntu rc.local[2246]:   va-driver-all vdpau-driver-all
mar 23 12:43:12 ubuntu rc.local[2246]: Veuillez utiliser « apt autoremove » pour les supprimer.
mar 23 12:43:12 ubuntu rc.local[2246]: 0 mis à jour, 0 nouvellement installés, 0 à enlever et 417 non mis à jour.
mar 23 12:43:12 ubuntu rc.local[2246]: Atteint :1 http://archive.ubuntu.com/ubuntu jammy InRelease
mar 23 12:43:12 ubuntu rc.local[2246]: Atteint :2 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
mar 23 12:43:12 ubuntu rc.local[2246]: Réception de :3 http://archive.ubuntu.com/ubuntu jammy-backports InRelease [107 kB]
mar 23 12:43:13 ubuntu rc.local[2246]: Réception de :4 http://archive.canonical.com jammy InRelease [11,4 kB]
mar 23 12:43:13 ubuntu rc.local[2246]: Atteint :5 http://security.ubuntu.com/ubuntu jammy-security InRelease
mar 23 12:43:18 ubuntu rc.local[2246]: 118 ko réceptionnés en 0s (335 ko/s)
mar 23 12:43:18 ubuntu rc.local[2246]: Lecture des listes de paquets…
mar 23 12:43:18 ubuntu rc.local[2246]: Dépôt : « deb http://archive.canonical.com/ jammy partner »

peter@peter-NS5x-NS7xPU:~$

Dernière modification par B_Peter (Le 02/04/2023, à 13:55)


Linux Ubuntu 22.04.2 LTS
12th Gen Intel® Core™ i7-1260P × 16
64,0 Gio / Mesa Intel® Graphics (ADL GT2) Intel IRIS Xe

Hors ligne

#35 Le 02/04/2023, à 13:53

ylag

Re : Message d'erreurs au démarrage.

Bonjour,

Concernant mon message #33, voir là (en anglais, parcontre ...) : https://www.reddit.com/r/linuxquestions … confidence

À ta place, je tenterais carrément de désactiver le service rc-local :

sudo systemctl disable --now rc-local.service

... si cette commande passe sur la 22.04, puis de voir le résultat de quelques redémarrages ?

Pour réactiver le service, ce serait :

sudo systemctl enable --now rc-local.service

Note : Commandes corrigées, de rc.local.service à rc-local.service

A+

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

Hors ligne

#36 Le 02/04/2023, à 14:03

B_Peter

Re : Message d'erreurs au démarrage.

ylag a écrit :

Bonjour,

Concernant mon message #33, voir là (en anglais, parcontre ...) : https://www.reddit.com/r/linuxquestions … confidence

À ta place, je tenterais carrément de désactiver le service rc-local :

sudo systemctl disable --now rc.local.service

... si cette commande passe sur la 22.04, puis de voir le résultat de quelques redémarrages ?

Pour réactiver le service, ce serait :

sudo systemctl enable --now rc.local.service

A+

Voici :

peter@peter-NS5x-NS7xPU:~$ sudo systemctl disable --now rc.local.service
Failed to disable unit: Unit file rc.local.service does not exist.
peter@peter-NS5x-NS7xPU:~$ 

Déjà merci, et c’est Dimanche, je propose un peu de repos. (et je dois partir)


Linux Ubuntu 22.04.2 LTS
12th Gen Intel® Core™ i7-1260P × 16
64,0 Gio / Mesa Intel® Graphics (ADL GT2) Intel IRIS Xe

Hors ligne

#37 Le 02/04/2023, à 15:39

ylag

Re : Message d'erreurs au démarrage.

B_Peter a écrit :

Déjà merci, et c’est Dimanche, je propose un peu de repos. (et je dois partir)

OK. smile
De toute façon, il te faudra d'autres intervenants pour aller plus loin.
J'ai atteint ma limite, désolé ...

A+

Dernière modification par ylag (Le 02/04/2023, à 15:59)

Hors ligne

#38 Le 02/04/2023, à 16:09

ylag

Re : Message d'erreurs au démarrage.

Bonjour,

Je me rends compte d'une erreur de ma part au message #35 (erreur corrigée à l'instant ...), les bonnes commandes sont plutôt :

sudo systemctl disable --now rc-local.service
sudo systemctl enable --now rc-local.service

... toutes mes excuses pour l'inconvénient.  sad

A+

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

Hors ligne

#39 Le 03/04/2023, à 11:15

B_Peter

Re : Message d'erreurs au démarrage.

Bon, j'ai exécuté la commande disable, mais rien ne change après un reboot.

Et pour revenir , ça ne vas visiblement pas :

peter@peter-NS5x-NS7xPU:~$ sudo systemctl enable --now rc-local.service
[sudo] Mot de passe de peter : 
The unit files have no installation config (WantedBy=, RequiredBy=, Also=,
Alias= settings in the [Install] section, and DefaultInstance= for template
units). This means they are not meant to be enabled using systemctl.
 
Possible reasons for having this kind of units are:
• A unit may be statically enabled by being symlinked from another unit's
  .wants/ or .requires/ directory.
• A unit's purpose may be to act as a helper for some other unit which has
  a requirement dependency on it.
• A unit may be started when needed via activation (socket, path, timer,
  D-Bus, udev, scripted systemctl call, ...).
• In case of template units, the unit is meant to be enabled with some
  instance name specified.
Job for rc-local.service failed because the control process exited with error code.
See "systemctl status rc-local.service" and "journalctl -xeu rc-local.service" for details.
peter@peter-NS5x-NS7xPU:~$ 

Une idée ?


Linux Ubuntu 22.04.2 LTS
12th Gen Intel® Core™ i7-1260P × 16
64,0 Gio / Mesa Intel® Graphics (ADL GT2) Intel IRIS Xe

Hors ligne

#40 Le 03/04/2023, à 13:10

ylag

Re : Message d'erreurs au démarrage.

Bonjour,

Pas d'autres idées, désolé ...
Il semblerait que le service rc-local se lance différemment sur la 22.04, faudra l'intervention de plus compétents que moi en la matière.

Aussi à confirmer par des pointures du forum : Je crois que toutes ces configurations ne devraient pas passer par le service rc-local.
Tu devrais abandonner l'utilisation de ce service, à mon humble avis.

Ajout :
Pour infos, voici le contenu du fichier /lib/systemd/system/rc-local.service de la 22.04 :

#  SPDX-License-Identifier: LGPL-2.1-or-later
#
#  This file is part of systemd.
#
#  systemd is free software; you can redistribute it and/or modify it
#  under the terms of the GNU Lesser General Public License as published by
#  the Free Software Foundation; either version 2.1 of the License, or
#  (at your option) any later version.

# This unit gets pulled automatically into multi-user.target by
# systemd-rc-local-generator if /etc/rc.local is executable.
[Unit]
Description=/etc/rc.local Compatibility
Documentation=man:systemd-rc-local-generator(8)
ConditionFileIsExecutable=/etc/rc.local
After=network.target

[Service]
Type=forking
ExecStart=/etc/rc.local start
TimeoutSec=0
RemainAfterExit=yes
GuessMainPID=no

... ce fichier est installé par le paquet systemd.

A+

Dernière modification par ylag (Le 03/04/2023, à 15:30)

Hors ligne

#41 Le 03/04/2023, à 16:05

B_Peter

Re : Message d'erreurs au démarrage.

ylag a écrit :

Bonjour,

Je me rends compte d'une erreur de ma part au message #35 (erreur corrigée à l'instant ...), les bonnes commandes sont plutôt :

sudo systemctl disable --now rc-local.service
sudo systemctl enable --now rc-local.service

... toutes mes excuses pour l'inconvénient.  sad

A+

Si j'ai pu 'disable', je devrait pouvoir 'enable', non ?


Linux Ubuntu 22.04.2 LTS
12th Gen Intel® Core™ i7-1260P × 16
64,0 Gio / Mesa Intel® Graphics (ADL GT2) Intel IRIS Xe

Hors ligne

#42 Le 03/04/2023, à 16:09

B_Peter

Re : Message d'erreurs au démarrage.

ylag a écrit :

Bonjour,

Pas d'autres idées, désolé ...
Il semblerait que le service rc-local se lance différemment sur la 22.04, faudra l'intervention de plus compétents que moi en la matière.

Aussi à confirmer par des pointures du forum : Je crois que toutes ces configurations ne devraient pas passer par le service rc-local.
Tu devrais abandonner l'utilisation de ce service, à mon humble avis.

Ajout :
Pour infos, voici le contenu du fichier /lib/systemd/system/rc-local.service de la 22.04 :

#  SPDX-License-Identifier: LGPL-2.1-or-later
#
#  This file is part of systemd.
#
#  systemd is free software; you can redistribute it and/or modify it
#  under the terms of the GNU Lesser General Public License as published by
#  the Free Software Foundation; either version 2.1 of the License, or
#  (at your option) any later version.

# This unit gets pulled automatically into multi-user.target by
# systemd-rc-local-generator if /etc/rc.local is executable.
[Unit]
Description=/etc/rc.local Compatibility
Documentation=man:systemd-rc-local-generator(8)
ConditionFileIsExecutable=/etc/rc.local
After=network.target

[Service]
Type=forking
ExecStart=/etc/rc.local start
TimeoutSec=0
RemainAfterExit=yes
GuessMainPID=no

... ce fichier est installé par le paquet systemd.

A+

Je n'ai pas ce fichier, uniquement :

systemd-localed.service.d

C'est quand la procaine version LTS ?

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


Linux Ubuntu 22.04.2 LTS
12th Gen Intel® Core™ i7-1260P × 16
64,0 Gio / Mesa Intel® Graphics (ADL GT2) Intel IRIS Xe

Hors ligne

#43 Le 03/04/2023, à 16:22

xubu1957

Re : Message d'erreurs au démarrage.

Bonjour,

B_Peter a écrit :

C'est quand la procaine version LTS ?

En avril 2024, pour info, la Doc versions.


Conseils pour les nouveaux demandeurs et pas qu'eux
Important : Pensez à passer vos sujets en [Réso|u] lorsque ceux-ci le sont, au début du titre en cliquant sur Modifier sous le premier message, et un bref récapitulatif de la solution à la fin de celui-ci. Merci.                   Membre de Linux-Azur

Hors ligne

#44 Le 03/04/2023, à 16:25

ylag

Re : Message d'erreurs au démarrage.

Bonjour,

Je n'ai pas ce fichier, ...

Tu devrais l'avoir en théorie si le paquet systemd est correctement installé.
Tu as peut-être le fichier /etc/systemd/system/rc-local.service ?
Pour vérifier :

apt policy systemd
sudo find / -type f -name rc-local.service 2>/dev/null

Mais je continue à croire qu'essayer de faire fonctionner ce service pour le genre de configurations que tu souhaites implémenter est une perte de temps pour toi.

Pour la prochaine LTS, ce devrait être la 24.04 en Avril 2024 !

A+

Dernière modification par ylag (Le 03/04/2023, à 16:28)

Hors ligne

#45 Le 03/04/2023, à 16:41

B_Peter

Re : Message d'erreurs au démarrage.

ylag a écrit :

Bonjour,

Je n'ai pas ce fichier, ...

Tu devrais l'avoir en théorie si le paquet systemd est correctement installé.
Tu as peut-être le fichier /etc/systemd/system/rc-local.service ?
Pour vérifier :

apt policy systemd
sudo find / -type f -name rc-local.service 2>/dev/null

Mais je continue à croire qu'essayer de faire fonctionner ce service pour le genre de configurations que tu souhaites implémenter est une perte de temps pour toi.

Pour la prochaine LTS, ce devrait être la 24.04 en Avril 2024 !

A+

Alors :

peter@peter-NS5x-NS7xPU:~$ apt policy systemd
systemd:
  Installé : 249.11-0ubuntu3.7
  Candidat : 249.11-0ubuntu3.7
 Table de version :
 *** 249.11-0ubuntu3.7 500
        500 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages
        100 /var/lib/dpkg/status
     249.11-0ubuntu3 500
        500 http://archive.ubuntu.com/ubuntu jammy/main amd64 Packages
peter@peter-NS5x-NS7xPU:~$ 

Et :

peter@peter-NS5x-NS7xPU:~$ sudo find / -type f -name rc-local.service 2>/dev/null
[sudo] Mot de passe de peter : 
/usr/lib/systemd/system/rc-local.service
/snap/core18/2721/lib/systemd/system/rc-local.service
/snap/core18/2714/lib/systemd/system/rc-local.service
/snap/core20/1405/usr/lib/systemd/system/rc-local.service
/snap/core20/1852/usr/lib/systemd/system/rc-local.service
/snap/core22/583/usr/lib/systemd/system/rc-local.service
peter@peter-NS5x-NS7xPU:~$ 

Dernière modification par B_Peter (Le 03/04/2023, à 16:41)


Linux Ubuntu 22.04.2 LTS
12th Gen Intel® Core™ i7-1260P × 16
64,0 Gio / Mesa Intel® Graphics (ADL GT2) Intel IRIS Xe

Hors ligne