Univention Bugzilla – Bug 35861
Package status check
Last modified: 2015-02-04 15:55:44 CET
We should add a system diagnostic plugin which checks the package status. If an error has been found, it should give some advise, for example: - Login via ssh as root - run the command 'dpkg --configure -a'
Package status check with "dpkg --audit" ?
Should it be a WARNING or CRITICAL, etc?
If dpkg --audit fails the following message is shown: The package status is corrupt. Login to the system as root via ssh and run the command "dpkg --configure -a" in order to correct the packages status. More information about the cause can be gained by executing "dpkg --audit". Der Paketstatus ist korrupt. Um den Paketstatus zu korrigieren loggen Sie sich am System per ssh als root ein und führen Sie das Kommando \"dpkg --configure -a\" aus. Weitere Informationen über die Ursache können durch Ausführen von \"dpkg --audit\" erhalten werden. Fix: svn r57689 YAML: 2015-01-30-univention-management-console-module-diagnostic.yaml
Created attachment 6639 [details] dpkg --audit output dpkg --audit always returns 0 see attachment hint for qa: to get an corrupted package install a package like this: apt-get install foobar & the installation will wait in the background and you'll get a pid. put the process back to the foreground and kill it with kill -9 <pid>
Well, you are right ;) I am parsing the output of dpkg --audit by hand now using LANG=C so that the string 'The following packages' indicates that something is wrong. The number of incorrect packages are also shown as the list of corrupt packages is printed with a leading space. I didn't find any lib for this.
OK - engl. and ger. advise is shown OK - debian/changelog OK - yaml file: I adapted the package-version
<http://errata.univention.de/ucs/4.0/72.html>