Update to 6.17 fails on Odroid xu4

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
wilhil
Posts: 5
Joined: Sun Nov 04, 2018 12:13 pm

Update to 6.17 fails on Odroid xu4

Post by wilhil » Sun Nov 04, 2018 12:36 pm

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:
<!-- Explain how to reproduce the issue -->
1. ...
2. ...

#### Expected behaviour:
<!-- What SHOULD be happening? -->
- ...

#### Actual behaviour:
<!-- What IS happening? -->
- ...

#### Extra details:
<!-- Please post any extra details that might help solve the issue -->
- ...

#### 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

User avatar
MichaIng
Legend
Posts: 1444
Joined: Sat Nov 18, 2017 5:21 pm

Re: Update to 6.17 fails on Odroid xu4

Post by MichaIng » Sun Nov 04, 2018 9:25 pm

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

Code: Select all

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.

wilhil
Posts: 5
Joined: Sun Nov 04, 2018 12:13 pm

Re: Update to 6.17 fails on Odroid xu4

Post by wilhil » Mon Nov 05, 2018 7:48 am

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)

User avatar
MichaIng
Legend
Posts: 1444
Joined: Sat Nov 18, 2017 5:21 pm

Re: Update to 6.17 fails on Odroid xu4

Post by MichaIng » Mon Nov 05, 2018 7:44 pm

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?

wilhil
Posts: 5
Joined: Sun Nov 04, 2018 12:13 pm

Re: Update to 6.17 fails on Odroid xu4

Post by wilhil » Tue Nov 06, 2018 7:52 am

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

User avatar
MichaIng
Legend
Posts: 1444
Joined: Sat Nov 18, 2017 5:21 pm

Re: Update to 6.17 fails on Odroid xu4

Post by MichaIng » Tue Nov 06, 2018 5:21 pm

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: https://packages.debian.org/stretch/debconf
Perhaps apt-get install --reinstall debconf:all will do the job then, although this should be selected automatically... :?

wilhil
Posts: 5
Joined: Sun Nov 04, 2018 12:13 pm

Re: Update to 6.17 fails on Odroid xu4

Post by wilhil » Wed Nov 07, 2018 7:45 am

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 http://ftp.uk.debian.org/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

User avatar
Fourdee
Site Admin
Posts: 2789
Joined: Tue Feb 06, 2007 12:36 pm

Re: Update to 6.17 fails on Odroid xu4

Post by Fourdee » Sat Nov 10, 2018 11:36 pm

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/issue ... -283030267
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal and Bitcoin.

wilhil
Posts: 5
Joined: Sun Nov 04, 2018 12:13 pm

Re: Update to 6.17 fails on Odroid xu4

Post by wilhil » Sun Nov 11, 2018 9:08 am

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

Post Reply