How to Disable apt Ubuntu Pro Advertisement

Ubuntu

On running “apt upgrade” command on Ubuntu 20.04 and newer, Ubuntu shows an advertisement about Ubuntu Pro subscription. To disable the Ubuntu Pro advertisement that appears when updating apt, run After running these commands, running “apt upgrade”, you won’t get the Ubuntu Pro advertisement. Back to Ubuntu

How to Install MySQL 5.7 on Ubuntu 22.04

MySQL 5.7 is not supported on Ubuntu 22.04, but you can download MySQL 5.7 for Ubuntu 18.04 and install it on Ubuntu 20.04 or Ubuntu 22.04 First, install libtinfo5, this is available for download from https://launchpad.net/ubuntu/bionic/amd64/libtinfo5/6.1-1ubuntu1.18.04 The files are moved from the Offical MySQL site https://dev.mysql.com/downloads/mysql/5.7.html So we will download it from a mirror site. … Read more

rsyslog Unsafe symlinks encountered in /var/log, refusing

Ubuntu

When updating packages on an Ubuntu server, I got the error “Unsafe symlinks encountered in /var/log, refusing.”. root@ip-172-31-45-33:/var# apt upgrade -y Reading package lists… Done Building dependency tree Reading state information… Done Calculating upgrade… Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1 not fully installed or removed. After this … Read more

How to verify installed packages on Ubuntu/Debian

To verify the integrity of installed packages, you can use debsums utility. First of all install debsums with command apt install -y debsums To verify packages, run debsums -s To verify a package debsums PKG_NAME If you find any packages with missing files, you can reinstall them with the command apt reinstall PKG_NAME

How to disable GUI in Ubuntu

If you have installed Ubuntu with GUI and don’t want GUI, you can disable GUI from starting on boot with command systemctl set-default multi-user If you need to GUI auto-start on boot, run systemctl set-default graphical.target

bash: locale-gen: command not found

debian linux

When I run locale-gen command, i get the following error root@netmon1:~# locale-gen en_US.UTF-8 bash: locale-gen: command not found root@netmon1:~# To see which package provide the locale-gen command, run boby@sok-01:~$ dpkg -S /usr/sbin/locale-gen locales: /usr/sbin/locale-gen boby@sok-01:~$ The command locale-gen is provided by package locales. To fix the error install package “locales” with the command apt install … Read more

Reinstall Kernel in Ubuntu/Debian

reinstall ubuntu kernel

To reinstall Kernel in Ubunru, you need to find the version of kernal installed, for this run dpkg -l | grep linux-image Or you can use command, find the kernel version you need to install apt-cache search linux-image Once you have the name of linux-image package you need to install, you can run apt-get install … Read more

install Shotcut Video Editor in ubuntu

Shotcut is an free open source video editor for Ubuntu. You can find more info at https://shotcut.org Latest version of Shotcut video editor can be installed on Ubuntu using command sudo snap install shotcut –classic shotcut is also available to be installed from apt, but this is slightly older version than snap. To install from … Read more