# Error when updating to 8.9

**URL:** <https://dietpi.com/forum/t/error-when-updating-to-8-9/14445>\
**Category:** Troubleshooting\
**Created:** [27 September 2022 07:15 UTC](https://dietpi.com/forum/t/error-when-updating-to-8-9/14445 "2022-09-27T07:15:45Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![giuliomagnifico](https://dietpi.com/forum/user_avatar/dietpi.com/giuliomagnifico/32/1890_2.png) [@giuliomagnifico](https://dietpi.com/forum/u/giuliomagnifico)\
**Post date:** [27 September 2022 07:15 UTC](https://dietpi.com/forum/t/error-when-updating-to-8-9/14445/1 "2022-09-27T07:15:45Z")

</div>

Hi, I was upgrading from 8.8 to 8.9 but every time I was receveing this error:

 ![Screen Shot 2022-09-27 at 08.11.15](https://dietpi.com/forum/uploads/default/original/2X/5/57658720294b1766f4103b68acc34f8ccf0a9fbd.jpeg)

Probably because I’m using a custom font for my attached display, see this old post: [Change default font terminal in DietPI](https://dietpi.com/forum/t/change-default-font-terminal-in-dietpi/6501)

So I deleted the `console-setup` package, updated, all fine, but now I can’t reinstall the package because I see this error:

```auto
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-setup`package correctly installed, other things are working but every time I reboot the RaspberryPI I have to wait 3 minutes:

 ![IMG_7648](https://dietpi.com/forum/uploads/default/original/2X/e/efb9932e22536ab858fc0456a1a5d77336b034c8.jpeg)

How can I reinstall this package - fix this issue? Every time I try to remove and reinstall it I get:

```auto
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)

```

```auto
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…)

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [27 September 2022 09:22 UTC](https://dietpi.com/forum/t/error-when-updating-to-8-9/14445/2 "2022-09-27T09:22:13Z")

</div>

did you tried using `dietpi-config` \> `5 : Language/Regional Options` to configure `Locale`

another option might be

```auto
rm /etc/default/locale
dpkg-reconfigure locales

```

Our default is `C.UTF-8`

---

<div class="post-metadata">

**Author:** ![giuliomagnifico](https://dietpi.com/forum/user_avatar/dietpi.com/giuliomagnifico/32/1890_2.png) [@giuliomagnifico](https://dietpi.com/forum/u/giuliomagnifico)\
**Post date:** [27 September 2022 09:39 UTC](https://dietpi.com/forum/t/error-when-updating-to-8-9/14445/3 "2022-09-27T09:39:29Z")

</div>

Yes I already tried. Same error.

```auto

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) 

```

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [27 September 2022 09:41 UTC](https://dietpi.com/forum/t/error-when-updating-to-8-9/14445/4 "2022-09-27T09:41:09Z")

</div>

you need to reboot in between. Did you try that?

---

<div class="post-metadata">

**Author:** ![giuliomagnifico](https://dietpi.com/forum/user_avatar/dietpi.com/giuliomagnifico/32/1890_2.png) [@giuliomagnifico](https://dietpi.com/forum/u/giuliomagnifico)\
**Post date:** [27 September 2022 09:56 UTC](https://dietpi.com/forum/t/error-when-updating-to-8-9/14445/5 "2022-09-27T09:56:04Z")

</div>

> [@giuliomagnifico](#):
>
> `dpkg-reconfigure locales`

Yes, I pasted all the output in one time but I rebooted after removing and setting the locales.

I thought it was also the issue, I also changed manually, reloaded the _C.UTF-8_ locale… nothing… I’m unable to fix/reinstall the console-setup package.

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [27 September 2022 10:02 UTC](https://dietpi.com/forum/t/error-when-updating-to-8-9/14445/6 "2022-09-27T10:02:47Z")

</div>

@MichaIng can you have a look on how to debug the post-installation script of `console-setup` package

---

<div class="post-metadata">

**Author:** ![MichaIng](https://dietpi.com/forum/user_avatar/dietpi.com/michaing/32/7_2.png) [@MichaIng](https://dietpi.com/forum/u/MichaIng)\
**Post date:** [27 September 2022 11:28 UTC](https://dietpi.com/forum/t/error-when-updating-to-8-9/14445/7 "2022-09-27T11:28:19Z")

</div>

Can you show the output of:

```bash
bash -x /var/lib/dpkg/info/console-setup.postinst

```

---

<div class="post-metadata">

**Author:** ![giuliomagnifico](https://dietpi.com/forum/user_avatar/dietpi.com/giuliomagnifico/32/1890_2.png) [@giuliomagnifico](https://dietpi.com/forum/u/giuliomagnifico)\
**Post date:** [27 September 2022 12:43 UTC](https://dietpi.com/forum/t/error-when-updating-to-8-9/14445/8 "2022-09-27T12:43:55Z")

</div>

> [@MichaIng](#):
>
> `bash -x /var/lib/dpkg/info/console-setup.postinst`

Sure, thanks for the help:

```auto
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:~# 

```

---

<div class="post-metadata">

**Author:** ![MichaIng](https://dietpi.com/forum/user_avatar/dietpi.com/michaing/32/7_2.png) [@MichaIng](https://dietpi.com/forum/u/MichaIng)\
**Post date:** [27 September 2022 13:10 UTC](https://dietpi.com/forum/t/error-when-updating-to-8-9/14445/9 "2022-09-27T13:10:00Z")

</div>

Still an issue with the locale. It tries to use the same as fallback, which fails again. Can you show:

```bash
ls -l /usr/lib/locale
locale -a

```

---

<div class="post-metadata">

**Author:** ![giuliomagnifico](https://dietpi.com/forum/user_avatar/dietpi.com/giuliomagnifico/32/1890_2.png) [@giuliomagnifico](https://dietpi.com/forum/u/giuliomagnifico)\
**Post date:** [27 September 2022 15:30 UTC](https://dietpi.com/forum/t/error-when-updating-to-8-9/14445/10 "2022-09-27T15:30:37Z")

</div>

```auto
root@Pi-Hole:~# ls -l /usr/lib/locale
total 1860
drwxr-xr-x 3 root root 4096 Sep 11 04:00 C.UTF-8
-rw-r--r-- 1 root root 1973920 Sep 27 11:49 locale-archive

```

```auto
root@Pi-Hole:~# locale -a
C
C.UTF-8
C.utf8
POSIX

```

---

<div class="post-metadata">

**Author:** ![giuliomagnifico](https://dietpi.com/forum/user_avatar/dietpi.com/giuliomagnifico/32/1890_2.png) [@giuliomagnifico](https://dietpi.com/forum/u/giuliomagnifico)\
**Post date:** [28 September 2022 06:40 UTC](https://dietpi.com/forum/t/error-when-updating-to-8-9/14445/11 "2022-09-28T06:40:22Z")

</div>

Some updates here, I tried to configure `dpkg-reconfigure locales`, then I selected nothing/no locales, and it worked!

```auto
[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

```auto
A start job is running for Helper to synchronize boot up for ifupdown

```

 ![IMG_7648](https://dietpi.com/forum/uploads/default/original/2X/e/efb9932e22536ab858fc0456a1a5d77336b034c8.jpeg)

I thinks is something related to the failed kernel update or similare, I have never seen it, someone know what is and how to have a normal/fast boot?

Thanks!

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [28 September 2022 07:19 UTC](https://dietpi.com/forum/t/error-when-updating-to-8-9/14445/12 "2022-09-28T07:19:22Z")

</div>

could you share following right after reboot

```auto
journalctl -u ifup@eth0.service

```

---

<div class="post-metadata">

**Author:** ![giuliomagnifico](https://dietpi.com/forum/user_avatar/dietpi.com/giuliomagnifico/32/1890_2.png) [@giuliomagnifico](https://dietpi.com/forum/u/giuliomagnifico)\
**Post date:** [28 September 2022 07:34 UTC](https://dietpi.com/forum/t/error-when-updating-to-8-9/14445/13 "2022-09-28T07:34:37Z")

</div>

Yes but not right after boot because the interface is down and I can’t SSH to it, I have to wait these 3 annoying minutes every time…

```auto
root@Pi-Hole:~# journalctl -u ifup@eth0.service
-- Journal begins at Wed 2022-09-28 09:30:35 CEST, ends at Wed 2022-09-28 09:33:22 CEST. --
Sep 28 09:30:36 Pi-Hole systemd[1]: Starting ifup for eth0...
Sep 28 09:30:36 Pi-Hole systemd[1]: Finished ifup for eth0.
root@Pi-Hole:~# 

```

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [28 September 2022 08:28 UTC](https://dietpi.com/forum/t/error-when-updating-to-8-9/14445/14 "2022-09-28T08:28:53Z")

</div>

could you reboot the system and export the entire system log once you have access

```auto
journalctl > /tmp/log.txt

```

Attach the log to your post

---

<div class="post-metadata">

**Author:** ![giuliomagnifico](https://dietpi.com/forum/user_avatar/dietpi.com/giuliomagnifico/32/1890_2.png) [@giuliomagnifico](https://dietpi.com/forum/u/giuliomagnifico)\
**Post date:** [28 September 2022 11:01 UTC](https://dietpi.com/forum/t/error-when-updating-to-8-9/14445/15 "2022-09-28T11:01:00Z")

</div>

Yes, it’s here. But I have rebooted it few hours ago.

[log.txt](https://dietpi.com/forum/uploads/short-url/kYIgvo0UHpyAqJhaPf8PaJjcl3Q.txt) (1.8 MB)

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 😁

Thanks!

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [28 September 2022 11:04 UTC](https://dietpi.com/forum/t/error-when-updating-to-8-9/14445/16 "2022-09-28T11:04:07Z")

</div>

Unfortunately, the log did not contain the boot process. There is nothing else than this

```auto
Sep 28 10:12:59 Pi-Hole sudo[240648]: dietpi : TTY=tty1 ; PWD=/tmp/padd_1000 ; USER=root ; COMMAND=/usr/sbin/unbound-control stats_noreset
Sep 28 10:12:59 Pi-Hole sudo[240648]: pam_unix(sudo:session): session opened for user root(uid=0) by dietpi(uid=1000)
Sep 28 10:12:59 Pi-Hole sudo[240648]: pam_unix(sudo:session): session closed for user root

```

---

<div class="post-metadata">

**Author:** ![giuliomagnifico](https://dietpi.com/forum/user_avatar/dietpi.com/giuliomagnifico/32/1890_2.png) [@giuliomagnifico](https://dietpi.com/forum/u/giuliomagnifico)\
**Post date:** [28 September 2022 12:41 UTC](https://dietpi.com/forum/t/error-when-updating-to-8-9/14445/17 "2022-09-28T12:41:29Z")

</div>

> DietPi will automatically clear log files in _/var/log_ every hour (to free memory)

Oh damn, what a stupid, I forgot it and I haven’t opened the log (because it was illegible from the phone :D)

Here’s the log right after the boot:

[log new.txt](https://dietpi.com/forum/uploads/short-url/71d6hwefleQaxnMacdj4kwQ6ymm.txt) (77.5 KB)

This is the issue (I don’t know if also the i2cprobe is an issue or only the interface, I’m investigating) 🤔

```auto
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'.

```

---

<div class="post-metadata">

**Author:** ![giuliomagnifico](https://dietpi.com/forum/user_avatar/dietpi.com/giuliomagnifico/32/1890_2.png) [@giuliomagnifico](https://dietpi.com/forum/u/giuliomagnifico)\
**Post date:** [28 September 2022 13:17 UTC](https://dietpi.com/forum/t/error-when-updating-to-8-9/14445/18 "2022-09-28T13:17:16Z")

</div>

Investigating the issue should be something related to

```auto
service network-manager start

```

Inside there’s a file called dietpi.conf

```auto
# 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`?

```auto
[Manager]
#LogLevel=info
#LogTarget=journal-or-kmsg
#LogColor=yes
#LogLocation=no
#LogTime=no
#DumpCore=yes
#ShowStatus=yes
#CrashChangeVT=no
#CrashShell=no
#CrashReboot=no
#CtrlAltDelBurstAction=reboot-force
#CPUAffinity=1 2
#NUMAPolicy=default
#NUMAMask=
#RuntimeWatchdogSec=0
#RebootWatchdogSec=10min
#ShutdownWatchdogSec=10min
#KExecWatchdogSec=0
#WatchdogDevice=
#CapabilityBoundingSet=
#NoNewPrivileges=no
#SystemCallArchitectures=
#TimerSlackNSec=
#StatusUnitFormat=description
#DefaultTimerAccuracySec=1min
#DefaultStandardOutput=journal
#DefaultStandardError=inherit
#DefaultTimeoutStartSec=90s
#DefaultTimeoutStopSec=90s
#DefaultTimeoutAbortSec=
#DefaultRestartSec=100ms
#DefaultStartLimitIntervalSec=10s
#DefaultStartLimitBurst=5
#DefaultEnvironment=
#DefaultCPUAccounting=no
#DefaultIOAccounting=no
#DefaultIPAccounting=no
#DefaultBlockIOAccounting=no
#DefaultMemoryAccounting=yes
#DefaultTasksAccounting=yes
#DefaultTasksMax=15%
#DefaultLimitCPU=
#DefaultLimitFSIZE=
#DefaultLimitDATA=
#DefaultLimitSTACK=
#DefaultLimitCORE=
#DefaultLimitRSS=
#DefaultLimitNOFILE=1024:524288
#DefaultLimitAS=
#DefaultLimitNPROC=
#DefaultLimitMEMLOCK=
#DefaultLimitLOCKS=
#DefaultLimitSIGPENDING=
#DefaultLimitMSGQUEUE=
#DefaultLimitNICE=
#DefaultLimitRTPRIO=
#DefaultLimitRTTIME=

```

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [28 September 2022 15:05 UTC](https://dietpi.com/forum/t/error-when-updating-to-8-9/14445/19 "2022-09-28T15:05:11Z")

</div>

> [@giuliomagnifico](#):
>
> ```auto
> service network-manager start
> 
> ```

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?

---

<div class="post-metadata">

**Author:** ![MichaIng](https://dietpi.com/forum/user_avatar/dietpi.com/michaing/32/7_2.png) [@MichaIng](https://dietpi.com/forum/u/MichaIng)\
**Post date:** [28 September 2022 15:43 UTC](https://dietpi.com/forum/t/error-when-updating-to-8-9/14445/20 "2022-09-28T15:43:17Z")

</div>

This is the service which hangs:

```bash
journalctl -u ifupdown-pre

```

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.

[Next page](https://dietpi.com/forum/t/error-when-updating-to-8-9/14445.md?page=2)
