Skip to content

Conversation

@pacharanero
Copy link

On my installation of Linux Mint 22.2 Cinnamon (X11) I encountered the following warning when using 'sudo apt install'

╰─$ sudo apt install ./espanso-debian-x11-amd64.deb
[sudo] password for marcus:                
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'espanso' instead of './espanso-debian-x11-amd64.deb'
The following NEW packages will be installed
  espanso
0 to upgrade, 1 to newly install, 0 to remove and 7 not to upgrade.
Need to get 0 B/3,898 kB of archives.
After this operation, 14.4 MB of additional disk space will be used.
Get:1 /home/marcus/Downloads/espanso-debian-x11-amd64.deb espanso amd64 2.2.7-1 [3,898 kB]
Selecting previously unselected package espanso.
(Reading database ... 803375 files and directories currently installed.)
Preparing to unpack .../espanso-debian-x11-amd64.deb ...
Unpacking espanso (2.2.7-1) ...
Setting up espanso (2.2.7-1) ...
N: Download is performed unsandboxed as root, as file '/home/marcus/Downloads/espanso-debian-x11-amd64.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)

I don't fully understand the reason, but it is more usual to use sudo dkpg -i when installing a downloaded .deb from the local disk, and this is what I generally see in other software.

This PR simply changes the command to sudo dpkg -i. I have tested this on my machine by uninstalling the package that was originally installed by apt and reinstalling this way, and it seems to work without the warning.

Great work on espanso BTW - I look forward to using it!

Changes the install command to avoid warning
@vercel
Copy link

vercel bot commented Sep 25, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
espanso-website Ready Ready Preview Comment Sep 25, 2025 6:33pm

Copy link
Collaborator

@AucaCoyan AucaCoyan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup, this is the way I install a *.deb package.

@smeech has the final say though, he has a better overall view of the documentation

@smeech
Copy link
Collaborator

smeech commented Sep 26, 2025

I'm inclined to stick with apt install rather than dkpg -i, I'm afraid, because it's what more users will be familiar with, and apt checks the package and automatically downloads and installs any missing dependencies, whereas dpkg -i doesn't.

Forgive me if I've misunderstood the problem, however!

@pacharanero
Copy link
Author

It's of course up to you, but I've never seen the apt install file.deb command used to install a downloaded .deb archive before. It is always dpkg -i file.deb, and I presume that these warnings are the reason why.

apt is of course widely used to install packages by name from the repositories eg apt install <package>.

@smeech
Copy link
Collaborator

smeech commented Sep 30, 2025

Thank you.

I think the furthest I'd go is to add a line that a N: Download is performed unsandboxed as root note can be safely ignored? I recall being a little bemused when I first encountered it, but was quickly reassured by a quick web search.

@smeech smeech mentioned this pull request Sep 30, 2025
45 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants