rsyslog-pkg-ubuntu
rsyslog-pkg-ubuntu copied to clipboard
ubuntu 22.04 install rsyslog with Ubuntu Repository error
The system version is Ubuntu 22.04.The following are the steps I installed, according to the official website:
sudo add-apt-repository ppa:adiscon/v8-stable sudo apt-get update sudo apt-get install rsyslog
Then an error occurred.
But after checking the service, I found that rsyslog has been installed. Just systemd restart rsyslog will do. After searching on Google, I found that repairing the status of dpkg would solve the problem. I tried to repair it with the following command and it worked:
sudo mv /var/lib/dpkg/info /var/lib/dpkg/info_silent sudo mkdir /var/lib/dpkg/info sudo apt-get update sudo apt-get -f install sudo mv /var/lib/dpkg/info/* /var/lib/dpkg/info_silent sudo rm -rf /var/lib/dpkg/info sudo mv /var/lib/dpkg/info_silent /var/lib/dpkg/info
I don't know how this problem occurs, I hope I can avoid it during installation.