Re: Not all files in my package installed

2020-05-01 Thread Tong Sun
On Fri, May 1, 2020 at 4:17 AM Sven Hartge - s...@svenhartge.de
 wrote:
>
> Tong Sun  wrote:
>
> > --
> > $ ls -l `dpkg -L dbab` > /dev/null
> > ls: cannot access '/usr/share/doc/dbab/README.Debian': No such file or
> > directory
> > ls: cannot access '/usr/share/doc/dbab/changelog.Debian.gz': No such file
> > or directory
> > ls: cannot access '/usr/share/doc/dbab/dbab-dnsmasq.intranet.conf': No such
> > file or directory
> > ls: cannot access '/usr/share/doc/dbab/dbab-dnsmasq.service.conf': No such
> > file or directory
> > ls: cannot access '/usr/share/doc/dbab/dbab-squid.localnet.conf': No such
> > file or directory
> > ls: cannot access '/usr/share/doc/dbab/dbab-squid.service.conf': No such
> > file or directory
> > ls: cannot access '/usr/share/doc/dbab/dbab.md.gz': No such file or
> > directory
> > ls: cannot access '/usr/share/man/man8': No such file or directory
> > ls: cannot access '/usr/share/man/man8/dbab-svr.8.gz': No such file or
> > directory
> > ls: cannot access '/usr/share/man/man8/dbab-add-list.8.gz': No such file or
> > directory
> > ls: cannot access '/usr/share/man/man8/dbab-chk-list.8.gz': No such file or
> > directory
> > ls: cannot access '/usr/share/man/man8/dbab-get-list.8.gz': No such file or
> > directory
> > ls: cannot access '/usr/share/man/man8/dhcp-add-wpad.8.gz': No such file or
> > directory
> > --
>
> > What could possibly be wrong?
>
> Could be dpkg's path-include and path-exclude configuration on your
> local system, for example from localepurge.
>
> Does
>
>   rgrep "path-" /etc/dpkg
>
> return anything for you?

Ah~~~, thank you, thank you Sven, and David!

Indeed --

/etc/dpkg/dpkg.cfg.d/docker:path-exclude /usr/share/doc/*
/etc/dpkg/dpkg.cfg.d/docker:path-exclude /usr/share/man/*
. . .

I've been pulling my hair worrying something is wrong with my package!

phrew, THANKS!!



Re: Not all files in my package installed

2020-05-01 Thread Sven Hartge
Tong Sun  wrote:

> --
> $ ls -l `dpkg -L dbab` > /dev/null
> ls: cannot access '/usr/share/doc/dbab/README.Debian': No such file or
> directory
> ls: cannot access '/usr/share/doc/dbab/changelog.Debian.gz': No such file
> or directory
> ls: cannot access '/usr/share/doc/dbab/dbab-dnsmasq.intranet.conf': No such
> file or directory
> ls: cannot access '/usr/share/doc/dbab/dbab-dnsmasq.service.conf': No such
> file or directory
> ls: cannot access '/usr/share/doc/dbab/dbab-squid.localnet.conf': No such
> file or directory
> ls: cannot access '/usr/share/doc/dbab/dbab-squid.service.conf': No such
> file or directory
> ls: cannot access '/usr/share/doc/dbab/dbab.md.gz': No such file or
> directory
> ls: cannot access '/usr/share/man/man8': No such file or directory
> ls: cannot access '/usr/share/man/man8/dbab-svr.8.gz': No such file or
> directory
> ls: cannot access '/usr/share/man/man8/dbab-add-list.8.gz': No such file or
> directory
> ls: cannot access '/usr/share/man/man8/dbab-chk-list.8.gz': No such file or
> directory
> ls: cannot access '/usr/share/man/man8/dbab-get-list.8.gz': No such file or
> directory
> ls: cannot access '/usr/share/man/man8/dhcp-add-wpad.8.gz': No such file or
> directory
> --

> What could possibly be wrong?

Could be dpkg's path-include and path-exclude configuration on your
local system, for example from localepurge.

Does

  rgrep "path-" /etc/dpkg

return anything for you?

Grüße,
Sven.

-- 
Sigmentation fault. Core dumped.



Re: Not all files in my package installed

2020-05-01 Thread David Kalnischkies
On Thu, Apr 30, 2020 at 07:59:26PM -0400, Tong Sun wrote:
> What could possibly be wrong?

If that would be files in /etc I would point you to the configuration
management by dpkg (as a removed file is a configuration change, too,
so dpkg preserves it) – that isn't the case here, but someone else might
stumble over this thread.


In your case with /usr/share/doc and manpages effected: Is this
a container? It is relatively popular to use path-excludes in them,
so have a look at /etc/dpkg/dpkg.cfg and /etc/dpkg/dpkg.cfg.d/*.

There might be stanzas like:
path-exclude /usr/share/man/*
path-exclude /usr/share/doc/*
in there.

If that is the case, it has nothing to do with your package and
works as intended™.

(Disclaimer: If excludes by default are a good or bad idea can
highly depend on the usecase and is out of scope for my reply)


Best regards

David Kalnischkies


signature.asc
Description: PGP signature


Not all files in my package installed

2020-04-30 Thread Tong Sun
Hi,

I've never experience this before and I have no clue either, but not all
files in my package get installed:

--
% apt-get install --reinstall -y dbab
. . .
Get:1 http://deb.debian.org/debian testing/main amd64 dbab all 1.3.3-1
[22.3 kB]
Fetched 22.3 kB in 0s (204 kB/s)
. . .
Preparing to unpack .../archives/dbab_1.3.3-1_all.deb ...
Unpacking dbab (1.3.3-1) over (1.3.3-1) ...
Setting up dbab (1.3.3-1) ...

% dpkg -L dbab
/.
/etc
/etc/dbab
/etc/dbab/dbab.addr
/etc/dbab/dbab.list+
/etc/dbab/dbab.list-
/etc/dbab/dbab.proxy
/etc/init.d
/etc/init.d/dbab
/lib
/lib/init
/lib/init/dbab-init-d-script
/lib/systemd
/lib/systemd/system
/lib/systemd/system/dbab.service
/usr
/usr/sbin
/usr/sbin/dbab-add-list
/usr/sbin/dbab-chk-list
/usr/sbin/dbab-get-list
/usr/sbin/dbab-svr
/usr/sbin/dhcp-add-wpad
/usr/share
/usr/share/doc
/usr/share/doc/dbab
/usr/share/doc/dbab/README.Debian
/usr/share/doc/dbab/changelog.Debian.gz
/usr/share/doc/dbab/copyright
/usr/share/doc/dbab/dbab-dnsmasq.intranet.conf
/usr/share/doc/dbab/dbab-dnsmasq.service.conf
/usr/share/doc/dbab/dbab-squid.localnet.conf
/usr/share/doc/dbab/dbab-squid.service.conf
/usr/share/doc/dbab/dbab.md.gz
/usr/share/man
/usr/share/man/man8
/usr/share/man/man8/dbab-svr.8.gz
/usr/share/man/man8/dbab-add-list.8.gz
/usr/share/man/man8/dbab-chk-list.8.gz
/usr/share/man/man8/dbab-get-list.8.gz
/usr/share/man/man8/dhcp-add-wpad.8.gz
--

Everything looks good so far, but --

--
$ ls -l `dpkg -L dbab` > /dev/null
ls: cannot access '/usr/share/doc/dbab/README.Debian': No such file or
directory
ls: cannot access '/usr/share/doc/dbab/changelog.Debian.gz': No such file
or directory
ls: cannot access '/usr/share/doc/dbab/dbab-dnsmasq.intranet.conf': No such
file or directory
ls: cannot access '/usr/share/doc/dbab/dbab-dnsmasq.service.conf': No such
file or directory
ls: cannot access '/usr/share/doc/dbab/dbab-squid.localnet.conf': No such
file or directory
ls: cannot access '/usr/share/doc/dbab/dbab-squid.service.conf': No such
file or directory
ls: cannot access '/usr/share/doc/dbab/dbab.md.gz': No such file or
directory
ls: cannot access '/usr/share/man/man8': No such file or directory
ls: cannot access '/usr/share/man/man8/dbab-svr.8.gz': No such file or
directory
ls: cannot access '/usr/share/man/man8/dbab-add-list.8.gz': No such file or
directory
ls: cannot access '/usr/share/man/man8/dbab-chk-list.8.gz': No such file or
directory
ls: cannot access '/usr/share/man/man8/dbab-get-list.8.gz': No such file or
directory
ls: cannot access '/usr/share/man/man8/dhcp-add-wpad.8.gz': No such file or
directory
--

What could possibly be wrong?

The package is at:
https://salsa.debian.org/debian/dbab

Thanks!