Update to 6.17 fails on Odroid xu4

Hi there,
Update doesn’t work for my Odroid XU4. There seems to be a problem with tzdata and/or debconf. Device works well but can’t be upgraded.
Here is the output:

Details:

  • Date | Sun 4 Nov 13:21:13 CET 2018
  • Bug report | N/A
  • DietPi version | v6.16
  • Img creator | DietPi Core Team
  • Pre-image | Meveric
  • SBC device | Odroid XU3/XU4/HC1/HC2 (armv7l) (index=11)
  • Kernel version | #1 SMP PREEMPT Thu Aug 23 05:59:33 UTC 2018
  • Distro | stretch (index=4)
  • Command | G_AGUG
  • Exit code | 100
  • Software title | DietPi-Update

Steps to reproduce:

Expected behaviour:

Actual behaviour:

Extra details:

Additional logs:

Log file contents:
Reading package lists...
Building dependency tree...
Reading state information...
Calculating upgrade...
The following packages will be upgraded:
curl libcurl3 libcurl3-gnutls tzdata
4 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
Need to get 1,020 kB of archives.
After this operation, 3,072 B disk space will be freed.
Get:1 > http://ftp.uk.debian.org/debian > stretch-updates/main armhf tzdata all 2018g-0+deb9u1 [270 kB]
Get:2 > https://cdn-aws.deb.debian.org/debian-security > stretch/updates/main armhf curl armhf 7.52.1-5+deb9u8 [223 kB]
Get:3 > https://cdn-aws.deb.debian.org/debian-security > stretch/updates/main armhf libcurl3 armhf 7.52.1-5+deb9u8 [264 kB]
Get:4 > https://cdn-aws.deb.debian.org/debian-security > stretch/updates/main armhf libcurl3-gnutls armhf 7.52.1-5+deb9u8 [262 kB]
debconf: Perl may be unconfigured (Unrecognized character �; marked by <-- HERE after { use 5.0<-- HERE near column 10 at /usr/share/perl/5.24/Carp.pm line 3.
Compilation failed in require at /usr/lib/arm-linux-gnueabihf/perl/5.24/IO/File.pm line 8.
BEGIN failed--compilation aborted at /usr/lib/arm-linux-gnueabihf/perl/5.24/IO/File.pm line 8.
Compilation failed in require at /usr/share/perl/5.24/FileHandle.pm line 9.
Compilation failed in require at (eval 1) line 3.
BEGIN failed--compilation aborted at (eval 1) line 3.
) -- aborting
Fetched 1,020 kB in 1s (747 kB/s)
Setting up debconf (1.5.61) ...
Unrecognized character �; marked by <-- HERE after { use 5.0<-- HERE near column 10 at /usr/share/perl/5.24/Carp.pm line 3.
Compilation failed in require at /usr/share/perl/5.24/Tie/Hash.pm line 5.
BEGIN failed--compilation aborted at /usr/share/perl/5.24/Tie/Hash.pm line 5.
Compilation failed in require at /usr/lib/arm-linux-gnueabihf/perl/5.24/POSIX.pm line 483.
Compilation failed in require at /usr/share/perl5/Debconf/Template.pm line 7.
BEGIN failed--compilation aborted at /usr/share/perl5/Debconf/Template.pm line 7.
Compilation failed in require at /usr/share/perl5/Debconf/Question.pm line 8.
BEGIN failed--compilation aborted at /usr/share/perl5/Debconf/Question.pm line 8.
Compilation failed in require at /usr/share/perl5/Debconf/Config.pm line 7.
BEGIN failed--compilation aborted at /usr/share/perl5/Debconf/Config.pm line 7.
Compilation failed in require at /usr/share/perl5/Debconf/Log.pm line 10.
Compilation failed in require at /usr/share/perl5/Debconf/Db.pm line 7.
BEGIN failed--compilation aborted at /usr/share/perl5/Debconf/Db.pm line 7.
Compilation failed in require at /usr/share/debconf/frontend line 6.
BEGIN failed--compilation aborted at /usr/share/debconf/frontend line 6.
dpkg: error processing package debconf (--configure):
subprocess installed post-installation script returned error exit status 255
Errors were encountered while processing:
debconf
E: Sub-process /usr/bin/dpkg returned an error code (1)

Hope I can find help here.

Thank you

Hmm, just successfully upgraded the same curl+ APT packages. But this was an x86_64 VM, maybe ARMv7 or Meveric repo specific :thinking: . Can you please try:

dpkg --configure curl
dpkg-reconfigure curl
apt-get -f install
apt-get dist-upgrade

It is expected that the first dpkg commands may fail, only the last one is important to run through successfully.

Hi MichaIng,
Thank you for this hint. Unfortunately it didn’t work. There must be something wrong in debconf. Always the same message:

Errors were encountered while processing:
debconf
E: Sub-process /usr/bin/dpkg returned an error code (1)

Okay, so it’s an curl update, but debconf fails. Perhaps try reinstalling: apt-get install --reinstall -y curl

And also try with debconf: apt-get install --reinstall -y debconf

Fourdee
Do you have a change to replicate current curl update failing on debconf?

Thank you, but it didn’t work again.

apt-get install --reinstall -y curl
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following additional packages will be installed:
libcurl3
The following packages will be upgraded:
curl libcurl3
2 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
2 not fully installed or removed.
Need to get 0 B/488 kB of archives.
After this operation, 0 B of additional disk space will be used.
debconf: Perl may be unconfigured (Unrecognized character \xB0; marked by ← HERE after { use 5.0<-- HERE near column 10 at /usr/share/perl/5.24/Carp.pm line 3.
Compilation failed in require at /usr/lib/arm-linux-gnueabihf/perl/5.24/IO/File.pm line 8.
BEGIN failed–compilation aborted at /usr/lib/arm-linux-gnueabihf/perl/5.24/IO/File.pm line 8.
Compilation failed in require at /usr/share/perl/5.24/FileHandle.pm line 9.
Compilation failed in require at (eval 1) line 3.
BEGIN failed–compilation aborted at (eval 1) line 3.
) – aborting
Setting up debconf (1.5.61) …
Unrecognized character \xB0; marked by ← HERE after { use 5.0<-- HERE near column 10 at /usr/share/perl/5.24/Carp.pm line 3.
Compilation failed in require at /usr/share/perl/5.24/Tie/Hash.pm line 5.
BEGIN failed–compilation aborted at /usr/share/perl/5.24/Tie/Hash.pm line 5.
Compilation failed in require at /usr/lib/arm-linux-gnueabihf/perl/5.24/POSIX.pm line 483.
Compilation failed in require at /usr/share/perl5/Debconf/Template.pm line 7.
BEGIN failed–compilation aborted at /usr/share/perl5/Debconf/Template.pm line 7.
Compilation failed in require at /usr/share/perl5/Debconf/Question.pm line 8.
BEGIN failed–compilation aborted at /usr/share/perl5/Debconf/Question.pm line 8.
Compilation failed in require at /usr/share/perl5/Debconf/Config.pm line 7.
BEGIN failed–compilation aborted at /usr/share/perl5/Debconf/Config.pm line 7.
Compilation failed in require at /usr/share/perl5/Debconf/Log.pm line 10.
Compilation failed in require at /usr/share/perl5/Debconf/Db.pm line 7.
BEGIN failed–compilation aborted at /usr/share/perl5/Debconf/Db.pm line 7.
Compilation failed in require at /usr/share/debconf/frontend line 6.
BEGIN failed–compilation aborted at /usr/share/debconf/frontend line 6.
dpkg: error processing package debconf (–configure):
subprocess installed post-installation script returned error exit status 255
Errors were encountered while processing:
debconf
E: Sub-process /usr/bin/dpkg returned an error code (1)



apt-get install --reinstall -y debconf
Reading package lists… Done
Building dependency tree
Reading state information… Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 4 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
E: Internal Error, No file name for debconf:armhf

Maybe you can find the error by reading all output.
Regards
wilhil

E: Internal Error, No file name for debconf:armhf

Strange, no valid armhf package available??

Please check:
apt-cache policy debconf

It should list all available debconf version within your APT repos. Lets see if somehow there are conflicts.
Just checked the Debian repo. The debconf package is for all architectures, not just armhf: Debian -- Error
Perhaps apt-get install --reinstall debconf:all will do the job then, although this should be selected automatically… :thinking:

Hello MichaIng,

Sorry, but no success again. Here is the output:

apt-cache policy debconf
debconf:
Installed: 1.5.61
Candidate: 1.5.61
Version table:
*** 1.5.61 500
500 > Index of /debian/ > stretch/main armhf Packages
100 /var/lib/dpkg/status



apt-get install --reinstall debconf:all
Reading package lists… Done
Building dependency tree
Reading state information… Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 4 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
E: Internal Error, No file name for debconf:armhf

Thank you for your effort
wilhil

Hi,

Was unable to replicate in local testing.

I suspect filesystem corruption due to insufficient PSU and/or failing flash media.

Please verify:

  • SD/EMMC card used
  • PSU used (make/model/voltage/wattage)

For the XU4, you need at least 5V/4A with no attached devices/USB. 5V/6A for cloudshell/USB.

I run a 5V/8A.

Might be worth full formatting the flash media, before writing the DietPi image.
https://github.com/Fourdee/DietPi/issues/769#issuecomment-283030267

Thank you for these hints.
I have 5V/4A and it works well. My HD has its own power supply. I use this odroid for more than a year. It is not the first update of my device and all went without problems.
My solution: I’ll use this system as long as possible in the current state. Whenever it will fail, I’ll do a new installation after formatting the filesystem.
Best regards
wilhil