This latest Saturday and today, through VirtualBox for Fedora Server 36, as many times as I did do, was executed the sudo dnf update command, the password is written and
starts to load and show some information.
It about the progress bar loading about retrieving the metadata from the repositories
Normally after of the latest point mentioned above, the process itself asks for my confirmation to start the update process with Y … but instead …
Problem
The user’s session is closed automatically.
If again I do the login and write the sudo dnf update command then the user’s session is closed automatically
Why happens this situation? how to fix it? indicate what log information you need to go forward with this situation
Your session was probably killed by OOM killer – DNF needs relatively lot of RAM (there is an open bug about dnf update failing on systems with <= 1 GiB of RAM). You can check the logs, look for lines looking like Out of memory: Killed process … in the journalctl -r output. Because this is a VM simply adding some more RAM should be an easy fix.
That makes sense. The current recommended minimum for graphical Fedora Workstation is 4GB of memory and the current general minimum for it is 2GB of memory.