So I deleted the console-setup package, updated, all fine, but now I can’t reinstall the package because I see this error:
Setting up console-setup (1.205+rpt1) ...
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
dpkg: error processing package console-setup (--configure):
installed console-setup package post-installation script subprocess returned error exit status 20
Errors were encountered while processing:
console-setup
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@Pi-Hole:~#
Now I can’t again change the font simply because I don’t have the console-setuppackage correctly installed, other things are working but every time I reboot the RaspberryPI I have to wait 3 minutes:
How can I reinstall this package - fix this issue? Every time I try to remove and reinstall it I get:
Preparing to unpack .../console-setup_1.205+rpt1_all.deb ...
Unpacking console-setup (1.205+rpt1) ...
Setting up console-setup (1.205+rpt1) ...
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
dpkg: error processing package console-setup (--configure):
installed console-setup package post-installation script subprocess returned error exit status 20
Errors were encountered while processing:
console-setup
E: Sub-process /usr/bin/dpkg returned an error code (1)
dpkg: error processing package console-setup (--configure):
installed console-setup package post-installation script subprocess returned error exit status 20
Errors were encountered while processing:
console-setup
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@Pi-Hole:~#
Thanks
Edit: I updated my other RaspberryPI with DietPI from 8.8 to 8.9 without issue, so the problem is this package or the fact that I changed something inside the display font (now I also don’t remember what I’ve made months ago…)
root@Pi-Hole:~# rm /etc/default/locale
root@Pi-Hole:~# dpkg-reconfigure locales
Generating locales (this might take a while)...
C.UTF-8... done
Generation complete.
root@Pi-Hole:~# sudo apt install console-setup
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
console-setup is already the newest version (1.205+rpt1).
0 upgraded, 0 newly installed, 0 to remove and 0 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
Setting up console-setup (1.205+rpt1) ...
dpkg: error processing package console-setup (--configure):
installed console-setup package post-installation script subprocess returned error exit status 20
Errors were encountered while processing:
console-setup
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@Pi-Hole:~# bash -x /var/lib/dpkg/info/console-setup.postinst
+ set -e
+ . /usr/share/debconf/confmodule
++ '[' '!' '' ']'
++ PERL_DL_NONLAZY=1
++ export PERL_DL_NONLAZY
++ '[' '' ']'
++ exec /usr/share/debconf/frontend /var/lib/dpkg/info/console-setup.postinst
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_CTYPE = "UTF-8",
LANG = "C.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("C.UTF-8").
Use of uninitialized value $action in string eq at /usr/share/debconf/frontend line 27.
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
root@Pi-Hole:~#
Some updates here, I tried to configure dpkg-reconfigure locales, then I selected nothing/no locales, and it worked!
[root@pi-Hole:~# dpkg-reconfigure locales
Generating locales (this might take a while)..
Generation complete.
[root@pi-Hole:~# apt install console-setup
Reading package lists... Done
Building dependency tree..
Done
Reading state information... Done
console-setup is already the newest version (1.205+rpt1)
0 upgraded, 0 newly installed, o to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
[Do vou want to continue? [Y/n] v
Setting up console-setup(1.205+rpt1)
root@pi-Hole:~#
But every time I boot it takes 3 minutes to start, due to this error that’s still here
A start job is running for Helper to synchronize boot up for ifupdown
PS: I’ve done all via iPhone connected to my home via VPN, I just discovered that it’s possible also to copy files from SSH it’s a bit uncomfortable for the size of the text
This is the issue (I don’t know if also the i2cprobe is an issue or only the interface, I’m investigating)
Sep 28 14:35:29 Pi-Hole systemd-udevd[177]: 22-005d: Spawned process '/usr/lib/raspberrypi-sys-mods/i2cprobe' [243] is taking longer than 59s to complete
Sep 28 14:35:29 Pi-Hole systemd-udevd[173]: 22-0014: Spawned process '/usr/lib/raspberrypi-sys-mods/i2cprobe' [246] is taking longer than 59s to complete
Sep 28 14:35:30 Pi-Hole systemd-udevd[168]: 22-0014: Worker [173] processing SEQNUM=1582 is taking a long time
Sep 28 14:35:30 Pi-Hole systemd-udevd[168]: 22-005d: Worker [177] processing SEQNUM=1586 is taking a long time
Sep 28 14:36:29 Pi-Hole systemd[1]: ifupdown-pre.service: Main process exited, code=exited, status=1/FAILURE
Sep 28 14:36:29 Pi-Hole systemd[1]: ifupdown-pre.service: Failed with result 'exit-code'.
Sep 28 14:36:29 Pi-Hole systemd[1]: Failed to start Helper to synchronize boot up for ifupdown.
Sep 28 14:36:29 Pi-Hole systemd[1]: Dependency failed for Raise network interfaces.
Sep 28 14:36:29 Pi-Hole systemd[1]: networking.service: Job networking.service/start failed with result 'dependency'.
Investigating the issue should be something related to
service network-manager start
Inside there’s a file called dietpi.conf
# Assure that ifupdown-pre always waits for udev to settle: https://dietpi.com/forum/t/dietpi-8-2-2-wireguard-doesnt-start-after-reboot/6415/28?u=michaing
[Service]
ExecStart=
ExecStart=/bin/dash -c '[ "$CONFIGURE_INTERFACES" = "no" ] || [ ! -x /bin/udevadm ] || udevadm settle'
Okay, I have to solve it, but to avoid the annoying 3 minutes wait every reboot, what is the correct entry to change the network timeout to 30 secs? In systemd-system.conf?
Ahmmm DietPi is not using network-manager on a default installation. We use ifupdown to manage network connection. network-manager would be conflicting with ifupdown and both should not be used in parallel. Or do I misunderstand your statement?
It waits for udev to settle before trying to initiate network interfaces. If it hangs, then there seems to be some hardware device flashing events until the timeout for udev is hit.