Bug 48649 - apt-get stuck at "egrep: warning: egrep is obsolescent; using egrep -E"
Summary: apt-get stuck at "egrep: warning: egrep is obsolescent; using egrep -E"
Status: CLOSED WORKSFORME
Alias: None
Product: Sisyphus
Classification: Development
Component: apt (show other bugs)
Version: unstable
Hardware: loongarch64 Linux
: P5 normal
Assignee: Ivan A. Melnikov
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-12-01 11:21 MSK by ZP2023
Modified: 2023-12-04 10:48 MSK (History)
6 users (show)

See Also:


Attachments
terminal output (406.02 KB, image/png)
2023-12-01 11:21 MSK, ZP2023
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description ZP2023 2023-12-01 11:21:39 MSK
Created attachment 15136 [details]
terminal output

Hello ALT Linux team,

I am using the technical preview for loongarch64 in qemu (xfce 2023.11.18). When I use apt-get install/upgrade, it's stuck at the last step, showing `egrep: warning: egrep is obsolescent; using egrep -E`. But actually, the packages are successfully installed, and when I do apt-get in a separate terminal, it does not give me "Unable to lock the list directory" prompt.

I've attached a screenshot showing some outputs of apt-get and some of my system information. (Although it's showing "Done" and quick, it took quite a long time)

Thanks!
Comment 1 Ivan A. Melnikov 2023-12-01 11:33:11 MSK
Hi, and thanks for your report.

> When I use apt-get install/upgrade, it's stuck at the last step,
> showing `egrep: warning: egrep is obsolescent; using egrep -E`.

Most of the time, the updates are not really stuck; they are running additional stuff (posttrans filetriggers), some of which take quite some time, especially on qemu which, depending on your host, is ether slow or very slow compared to the real hardware.

So, when this happens, can you check what's really happening? E.g. run

pstree -ap 

on a second terminal window and attach the output here? Probably there will be something like mandb running.

> and when I do apt-get in a separate terminal, it does not give me "Unable to lock the list directory" prompt.

This is the correct behavior. Only one instance of package manager can do things at any given moment in time.
Comment 2 Ivan A. Melnikov 2023-12-01 11:43:02 MSK
Ah, and one more thing.

> I've attached a screenshot showing some outputs of apt-get and some of my system information. (Although it's showing "Done" and quick, it took quite a long time).

Did I understand it correctly: after all, the update has completed succesfully?
Comment 3 ZP2023 2023-12-04 02:37:48 MSK
Update: It's no longer stuck now, at least it doesn't take as much time as before. I think it's fixed?
And the "egrep: warning: egrep is obsolescent; using egrep -E" warning still shows up.
Thanks!
Comment 4 Ivan A. Melnikov 2023-12-04 10:48:53 MSK
> I think it's fixed?

We've improved a few thinks, but since I don't know what exactly was happening, I can't say for sure that *that* thing is fixed.

But sure, good to know that things work for you now. I'll mark this as resolved.