TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: SJ5PAH-S2UP1.LN1@ESPRIMO.
from: I R A DARTH AGGIE
date: 2021-01-08 15:57:00
subject: Re: apt upgrade hangs on

On Wed, 16 Dec 2020 10:54:20 +0000,
Chris Green , in
 wrote:
>  Once again an 'apt upgrade' has stalled on my 1Gb Pi 4.  Here's where
>  it stops after a standard 'apt update' and 'apt upgrade' :-

>  Does anyone have any suggestions as to what might be causing this
>  and/or ways to diagnose what's happening?

There are logs in /var/log/apt/ that may be useful. If they're not
useful, I would go with:

strace -o upgrade.output *troublesome command here*

on the step that causes the issue. -o names an output file, which will
contain stuff like:

execve("/usr/bin/aptitude", ["aptitude", "search", "ldap"], 0x7fff03348030
brk(NULL)                               = 0x559115325000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/local/lib/tls/x86_64/x86_64/libapt-pkg.so.6.0",

This is quite voluminous. Ideally, it'll log enough information so
that you can narrow things down to a particular packgage being
installed.

--
Consulting Minister for Consultants, DNRC
I can please only one person per day. Today is not your day. Tomorrow
isn't looking good, either.
I am BOFH. Resistance is futile. Your network will be assimilated.

--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.