Sometimes updates are not completed as desired, which is why certain changes are pending at the database level, this generates errors when applying changes.
Access the PBX and escalate privileges to root user. If you log in as a user other than root, you must issue the “su -” command to escalate privileges.
Finally, to fix this update issue, run the following commands from the console:
Proceed to delete all .deb files downloaded from the local cache, which are software packages downloaded during program installations or updates. This command frees up disk space without affecting installed programs and is occasionally used for system maintenance.
apt clean all
We ensure that the system knows about the latest updates and packages available in its configured sources, usually configured in the /etc/apt/sources.list file and other additional repositories. This command is often used before installing new software or updating existing packages to ensure that the system has the latest information.
apt update
To update all installed packages to their latest versions available in the repositories. The -y flag automatically responds “yes” to all requests, allowing the update to continue without manual intervention. This command ensures that your system software stays up to date with the latest features, bug fixes, and security patches. It is important to run apt update before using apt Upgrade to ensure package lists are up to date.
apt upgrade -y
Use the following command to automatically remove packages that were automatically installed to satisfy dependencies on other packages and are no longer needed. This helps keep the system clean by removing unnecessary packages, thus freeing up disk space. It is particularly useful after you have removed or updated software, as it cleans up leftover packages that are no longer needed by any installed programs.
apt autoremove
Sometimes it is necessary to restart the server, especially if we see errors when executing any of the previous commands.