On Tue, Feb 02, 2021 at 11:15:47AM +0100, [email protected] wrote:
Package: yp-tools
Version: 4.2.3-3
With the new 4.x version of NIS this happens
$ ypcat passwd
nickname file /var/yp/nicknames does not exist.
No such map passwd. Reason: No such map in server's domain
The old 3.x nis tools provided the file /var/yp/nicknames, so one can
call
ypcat passwd
instead of
ypcat passwd.byname
ypcat (4.x) still looks for /var/yp/nicknames, but it's not provided
by the yp-tools package.
That is a conf file managed by ucf and the distributed copy is here:
/usr/share/yp/templates/var_yp_nicknames
In postinst ucf should manage the update of that file. Did you upgrade or
install from scratch? If upgraded, did you upgrade from nis 3.x or had a
previous version of yp-tools installed (that was available at least in the
last pair of years as a separate package). All that should be evident
from dpkg logs. That's just to understand where the problem could be.
Indeed, a fresh install regularly install the required file (sorry for the it
locale):
vagrant@testing1:~$ sudo apt install yp-tools
Lettura elenco dei pacchetti... Fatto
Generazione albero delle dipendenze
Lettura informazioni sullo stato... Fatto
I seguenti pacchetti sono stati installati automaticamente e non sono più
richiesti:
libisl22 libjson-c4 libmpdec2 libperl5.30 libpython3.8-minimal
libpython3.8-stdlib linux-image-5.6.0-2-amd64 python3.8 python3.8-minimal
Usare "sudo apt autoremove" per rimuoverli.
I seguenti pacchetti aggiuntivi saranno inoltre installati:
nscd rpcbind ypbind-mt
I seguenti pacchetti NUOVI saranno installati:
nscd rpcbind yp-tools ypbind-mt
0 aggiornati, 4 installati, 0 da rimuovere e 3 non aggiornati.
È necessario scaricare 435 kB di archivi.
Dopo quest'operazione, verranno occupati 969 kB di spazio su disco.
Continuare? [S/n]
Scaricamento di:1 http://deb.debian.org/debian bullseye/main amd64 rpcbind amd64 1.2.5-9 [51,4 kB]
Scaricamento di:2 http://deb.debian.org/debian bullseye/main amd64 nscd amd64
2.31-9 [289 kB]
Scaricamento di:3 http://deb.debian.org/debian bullseye/main amd64 ypbind-mt
amd64 2.7.2-2 [39,9 kB]
Scaricamento di:4 http://deb.debian.org/debian bullseye/main amd64 yp-tools
amd64 4.2.3-3 [55,1 kB]
Recuperati 435 kB in 1s (301 kB/s)
Selezionato il pacchetto rpcbind non precedentemente selezionato.
(Lettura del database... 98813 file e directory attualmente installati.)
Preparativi per estrarre .../rpcbind_1.2.5-9_amd64.deb...
Estrazione di rpcbind (1.2.5-9)...
Selezionato il pacchetto nscd non precedentemente selezionato.
Preparativi per estrarre .../archives/nscd_2.31-9_amd64.deb...
Estrazione di nscd (2.31-9)...
Selezionato il pacchetto ypbind-mt non precedentemente selezionato.
Preparativi per estrarre .../ypbind-mt_2.7.2-2_amd64.deb...
Estrazione di ypbind-mt (2.7.2-2)...
Selezionato il pacchetto yp-tools non precedentemente selezionato.
Preparativi per estrarre .../yp-tools_4.2.3-3_amd64.deb...
Estrazione di yp-tools (4.2.3-3)...
Configurazione di rpcbind (1.2.5-9)...
Created symlink /etc/systemd/system/multi-user.target.wants/rpcbind.service →
/lib/systemd/system/rpcbind.service.
Created symlink /etc/systemd/system/sockets.target.wants/rpcbind.socket →
/lib/systemd/system/rpcbind.socket.
Configurazione di nscd (2.31-9)...
Created symlink /etc/systemd/system/multi-user.target.wants/nscd.service →
/lib/systemd/system/nscd.service.
Configurazione di ypbind-mt (2.7.2-2)...
Configurazione di yp-tools (4.2.3-3)...
Creating config file /var/yp/nicknames with new version
Elaborazione dei trigger per man-db (2.9.3-2)...
vagrant@testing1:~$ ls /var/yp/
binding nicknames
--
Francesco P. Lovergine