[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: odd result for sudo dpkg -V



On Monday 08 November 2021 11:19:12 Daniel Serpell wrote:

> Hi,
>
> El Sun, Nov 07, 2021 at 03:54:50PM -0500, Gene Heskett escribio:
> > On Sunday 07 November 2021 03:19:09 deloptes wrote:
> > > > Note that I as the OP was using dpkg -V, not --verify. Might
> > > > their be a difference?
> > > >
> > > > Cheers, Gene Heskett.
> > >
> > > Gene always check the -h vs --help or man page
> > >
> > > dpkg --help
> > >   -V|--verify [<package>...]       Verify the integrity of
> > > package(s).
> > >
> > > package is optional and if not provided would check all packages
> > > installed but it seems this is broken
> > >
> > > BR
> >
> > well, I'm getting an almost sensible listing from the wintel boxes,
> > although the attributes reported are garbage in all cases of an
> > error. an ls -l shows the attributes correctly.
>
> Please, read the manual.

I have, but it rambles. So I did not note that. This is a much better 
explanation in that it actualy explains the results. Thanks a bunch.

> The reported codes are not the file attributes, those are the status
> of the performed checks. DPKG only has support for verifying the MD5,
> so the result is always "??.??????" for a passed check and "??5??????"
> for a failed check.
>
> And the reported failed checks on Armbian are because the
> "armbian-config" package modifies configuration files of other
> packages.
>
Should that not result in a more consistent number? I got nearly 90 the 
first time.
I got 74 the last time I ran it on the pi, since nothing was been changed 
since, I am running it again. This pi has lots more stuff installed as 
its a full development system for LinuxCNC. Humm, after almost an hour, 
I got 74 again. There is always the possibility I didn't use a sudo the 
first time.

Thanks Daniel.

> Here, in a minimal Armbian install, I got:
>
> ??5?????? c /etc/skel/.bashrc
> ??5?????? c /etc/logrotate.d/apt
> ??5?????? c /etc/systemd/journald.conf
> ??5?????? c /etc/NetworkManager/NetworkManager.conf
> ??5?????? c /etc/default/rng-tools-debian
> ??5?????? c /etc/logrotate.d/alternatives
> ??5?????? c /etc/logrotate.d/dpkg
> ??5?????? c /etc/logrotate.d/aptitude
> ??5?????? c /etc/sysctl.conf
> ??5?????? c /etc/logcheck/violations.ignore.d/rng-tools
> ??5?????? c /etc/logcheck/ignore.d.server/rng-tools
> ??5?????? c /etc/default/rng-tools
> ??5??????   /etc/armbian-release
> ??5??????   /etc/default/armbian-ramlog.dpkg-dist
> ??5??????   /etc/default/armbian-zram-config.dpkg-dist
> ??5?????? c /etc/issue
> ??5?????? c /etc/issue.net
> ??5?????? c /etc/update-motd.d/10-uname
> ??5?????? c /etc/initramfs-tools/initramfs.conf
> ??5?????? c /etc/lightdm/lightdm-gtk-greeter.conf
>
> As you see, all are configuration files modified by Armbian.
>
> In the same hardware, a SID install reports all checks OK.
>
> Have Fun!


Cheers, Gene Heskett.
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/gene>


Reply to: