On Thu 01 Aug 2019 at 16:19:16 +0200, to...@tuxteam.de wrote: > On Thu, Aug 01, 2019 at 03:38:04PM +0200, Pierre Frenkiel wrote: > > hi, > > > > when I run hp-plugin on my laptop (debian/stretch), it says > > driver plugin for HPLIP 3.16.11 already installed ... > > (the hplip package version is 3.16.11) > > > > if I do that on my desktop (debian/buster), I get: > > error: Unable to open /data/home/frenkiel/.hplip/hp-plugin.lock lock > > file. > > (the hplip package version is 3.18.12) > > Guess... > > > sudo hp-plugin gives: > > warning: It is not recommended to run 'hp-plugin' in a root mode. > > Perhaps you succeeded running hp-plugin once as root and it created the > lock file (/data/home/frenkiel/.hplip/hp-plugin.lock) with root permission? > > What does "ls -l /data/home/frenkiel/.hplip/hp-plugin.lock" say? > (or even better: "ls -al /data/home/frenkiel/.hplip", so we can > see the access metadata of the directory too).
Permissions on files and directories are likely not the issue here. A user can (and as recommended above, should) run hp-plugin. After the plugin is downloaded and the licence agreed to the root password is requested. The installation then takes place. On issuing the command 'hp-plugin' hp-plugin.lock should be created in ~/.hplip. The error message above is a complaint that this file cannot be opened because possibly it cannot be found. -- Brian.