[elbe-devel] Problems with internet connection?

Torben Hohn torben.hohn at linutronix.de
Wed Sep 16 13:56:02 CEST 2020


On Thu, Sep 10, 2020 at 06:02:28PM +0200, Köry Maincent wrote:
> Hello,
> 
> I got several times this error below in building a full image.
> The error appears sometimes but sometimes all end well.
> I am wondering if this is really a connection issue. 
> I am working on Ubuntu image and their repositories are quite stable.
> Or even if it is a connection issue could we just retry the connect
> action.
> The code under get_rpcaptcache function appears not clear to me.
> 
> Regards,
> 
> [CMD]
> chroot /var/cache/elbe/dfd904f3-b5dc-4856-8522-bfadbd5320f1/chroot /bin/sh
> -c '[ -f /lib/systemd/system/serial-getty at .service ] && ln
> -s /lib/systemd/syst
> em/serial-getty at .service /etc/systemd/system/getty.target.wants/serial-getty at tty
> mx0.service' [ERROR] Commiting changes failed Traceback (most recent
> call last): File "/var/cache/elbe/devel/elbepack/elbeproject.py", line
> 1063, in install_pa ckages
>     self.get_rpcaptcache(env=target
> 
> ).commit()
>   File "<string>", line 2, in commit
>   File "/usr/lib/python2.7/multiprocessing/managers.py", line 774, in
> _callmethod raise convert_to_error(kind, result)
> Error: E:Sub-process /usr/bin/dpkg returned an error code (1)
> [CMD]
> mv /var/cache/elbe/dfd904f3-b5dc-4856-8522-bfadbd5320f1/chroot/repo /var/cache/elbe/dfd904f3-b5dc-4856-8522-bfadbd5320f1/chroot/../
> [CMD]
> rm /var/cache/elbe/dfd904f3-b5dc-4856-8522-bfadbd5320f1/chroot/etc/apt/sources.list.d/local.list
> [CMD]
> rm /var/cache/elbe/dfd904f3-b5dc-4856-8522-bfadbd5320f1/chroot/etc/apt/trusted.gpg.d/elbe-localrepo.gpg
> [ERROR] Failed to commit the AptCache changes. Probable cause might be:
>   - Problems with internet connection

Sometimes the actual error message printed by dpkg is at a different
position in the log file.

The error comes from dpkg via libapt via python-apt.  Not sure, if we
can tell dpkg to retry. Maybe this is a dependency problem due to
ongoing updates of the mirrors.

There is not much we can do about that.

> 
> -- 
> Köry Maincent, Bootlin
> Embedded Linux and kernel engineering
> https://bootlin.com
> _______________________________________________
> elbe-devel mailing list
> elbe-devel at linutronix.de
> https://lists.linutronix.de/mailman/listinfo/elbe-devel

-- 
Torben Hohn
Linutronix GmbH | Bahnhofstrasse 3 | D-88690 Uhldingen-Mühlhofen
Phone: +49 7556 25 999 18; Fax.: +49 7556 25 999 99

Hinweise zum Datenschutz finden Sie hier (Informations on data privacy 
can be found here): https://linutronix.de/kontakt/Datenschutz.php

Linutronix GmbH | Firmensitz (Registered Office): Uhldingen-Mühlhofen | 
Registergericht (Registration Court): Amtsgericht Freiburg i.Br., HRB700 
806 | Geschäftsführer (Managing Directors): Heinz Egger, Thomas Gleixner


More information about the elbe-devel mailing list