debconf: DbDriver “config”: /var/cache/debconf/config.dat is locked by another process: No locks available
Hello.
I want to run some x86_64 apps from jetson nano,for example google chrome and teamviewer and I want also to copy heavy files from the sd card of the nano on a larger disk on the desktop PC. For this reason I've configured the NFS server on ubuntu 18.04 x64 and the client on the jetson nano where I have installed ubuntu 18.04 arm64. I've configured the server adding this command inside the /etc/exports file on ubuntu 18.04 x64 :
/home/loziomari
on the client side,I mount the shared folder with this command :
sudo mount 192.168.
where :
192.168.1.6 = ip number of the server (ubuntu 18.04 x64 bit)
192.168.1.3 = ip number of the nano / ubuntu 18.04 arm64
what I want to do is to copy the groovy debootstrapped chroot folder from the nano sd card to the server disk,inside a shared folder,called "qemu-chroot-I9" and I do this with this command :
sudo rsync -avzhprt --numeric-ids /root/Scrivania
all the files are copied without problems. After this,I mount all the chroot system folders and I copy the qemu-x86_64-static file from the /usr/bin folder of the ubuntu / nano on the /usr/bin folder of the groovy chroot like this :
cp /usr/bin/
and :
xhost +
sudo mount -t sysfs /sys/ /root/Scrivania
sudo mount -t proc /proc/ /root/Scrivania
sudo mount --bind /dev /root/Scrivania
sudo mount --bind /dev/pts /root/Scrivania
sudo mount --bind /dev/shm /root/Scrivania
and I became root inside the chroot with this command :
sudo chroot /root/Scrivania
(I can become root because I have been able to debootstrap correctly the groovy amd64 directly on the nano sd card (using the two debootstrapping stages :
1) debootstrap --foreign --arch amd64 groovy ./chroot-
2) sudo chroot ./chroot-
and I have configured the root login correctly groovy first on the nano sd card)
and this is what happens if I try to install nano inside the chroot :
root@ziomario-
Reading package lists… Done
Building dependency tree… Done
Suggested packages:
hunspell
The following NEW packages will be installed:
nano
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 284 kB of archives.
After this operation, 930 kB of additional disk space will be used.
Get:1 http://
Fetched 284 kB in 1s (324 kB/s)
unfortunately this error occour :
debconf: DbDriver “config”: /var/cache/
dpkg: error: unable to lock dpkg database lock: No locks available
W: Not using locking for nfs mounted lock file /var/lib/
W: Not using locking for nfs mounted lock file /var/lib/dpkg/lock
W: Not using locking for nfs mounted lock file /var/cache/
E: Sub-process /usr/bin/dpkg returned an error code (2)
according with this post
it says that doing :
sudo fuser -v /var/cache/
Will show you what process is holding the lock:
good. I gave this command outside the chroot like this :
root@ziomario-
output = nothing
I gave this command also on the server side :
root@loziomario
output = nothing
so,nothing is holding the lock.
this is even more interesting. I have renamed the config.dat file on ubuntu 18.04 arm64 outside and inside the chroot like this :
root@ziomario-
root@ziomario-
config.dat-old config.dat_ passwords.dat templates.dat templates.dat-old
and I tried to install nano again :
root@ziomario-
Reading package lists… Done
Building dependency tree
Reading state information… Done
Suggested packages:
hunspell
The following NEW packages will be installed:
nano
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/284 kB of archives.
After this operation, 930 kB of additional disk space will be used.
but the error is still there :
debconf: DbDriver “config”: /var/cache/
dpkg: error: unable to lock dpkg database lock: No locks available
W: Not using locking for nfs mounted lock file /var/lib/
W: Not using locking for nfs mounted lock file /var/lib/dpkg/lock
W: Not using locking for nfs mounted lock file /var/cache/
E: Sub-process /usr/bin/dpkg returned an error code (2)
it seems to me a bug.
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Ubuntu apt Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Marietto for more information if necessary.