Skip to content

ubuntu 22.04 install rsyslog with Ubuntu Repository error #171

@zhuchqun

Description

@zhuchqun

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.
image

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions