Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

mv: cannot stat 'pencil.desktop': No such file or directory [closed]

I have been trying to install the Pencil Project on Ubuntu-18.04 to design user interfaces before implementing it. I have been having the following installation problem and I am not sure why. After downloading it I only

sudo apt install ./pencil_3.1.0.ga_amd64.deb && sudo apt install -f

Below the warning:

emanuele@pc:~/Downloads$ sudo dpkg -i pencil_3.1.0.ga_amd64.deb && sudo apt install -f (Reading database ... 257381 files and directories currently installed.) Preparing to unpack pencil_3.1.0.ga_amd64.deb ... Unpacking pencil (3.1.0.ga) over (3.1.0.ga) ... rm: cannot remove '/usr/share/applications/pencil.desktop': No such file or directory rm: cannot remove '/usr/share/applications/pencil.png': No such file or directory Setting up pencil (3.1.0.ga) ... mv: cannot stat 'pencil.desktop': No such file or directory mv: cannot stat 'pencil.png': No such file or directory chmod: cannot access '/usr/share/applications/pencil.*': No such file or directory Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 529 not upgraded.

And I am not sure why is not being installed. I consulted this source and also this and both sources said that there is a missing file in the folder indicated in the warning. There seems to be a missing icon or .png. But I downloaded the .deb from the official documentation. and simply

 sudo apt install ./pencil_3.1.0.ga_amd64.deb && sudo apt install -f
like image 750
Emanuele Avatar asked Mar 03 '23 16:03

Emanuele


1 Answers

I have had the same issue with that same version. When I tried to install with:

apt install ./pencil_3.1.0.ga_amd64.deb && sudo apt install -f

It threw me the same error, but then I uninstalled it before with the -f option

apt-get remove -f pencil

And then, again

apt install ./pencil_3.1.0.ga_amd64.deb && sudo apt install -f

That's what I did, and that worked

PD: I would to point out, that, if after install it fails to startup, you can try to search with gnome-system-monitor or htop all pencil processes and kill/terminate. It is also what happened to me.

like image 106
wiggin200 Avatar answered Mar 05 '23 17:03

wiggin200