question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Packaging Suggestion - Debian based distros

See original GitHub issue

Add the following to the postinst file to automate repo and key installation:

echo "deb https://dl.bintray.com/resin-io/debian stable etcher" | sudo tee /etc/apt/sources.list.d/etcher.list

sudo apt-key adv --keyserver hkp://pgp.mit.edu:80 --recv-keys 379CE192D401AB61

of course you’ll need to include checks to ensure the information has not already been added in previous versions.

Add the following to the postrm file to automate repo and key removal:

sudo rm /etc/apt/sources.list.d/etcher.list

sudo apt-key del 379CE192D401AB61

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
dlechcommented, Dec 19, 2017

I don’t understand why you would set up the remote repository after installing the package. The point of setting up the repository is so that you can install the package with apt. Also having a package that removes an apt source when it is uninstalled is unprecedented, so I suspect it would catch a lot of people off guard.

As a separate question, is it worth adding that apt-key del command to here ?

Actually, I wouldn’t use apt-key at all. The “right” way (according to some Debian maintainers I talked to) is to just put the key in /etc/apt/trusted.gpg.d. (apt-key is no longer a required package in Debian since Stretch, so as time goes on, I expect fewer people to have it installed.) So, in the README, I would replace

sudo apt-key adv --keyserver hkp://pgp.mit.edu:80 --recv-keys 379CE192D401AB61

with

curl https://bintray.com/user/downloadSubjectPublicKey?username=bintray | sudo gpg --dearmor --output /etc/apt/trusted.gpg.d/bintray.gpg

This way, if people want to inspect the key first instead of piping directly to gpg, they can.

curl https://bintray.com/user/downloadSubjectPublicKey?username=bintray -O -J
# inspect bintray-public.key.asc
sudo gpg --dearmor --output /etc/apt/trusted.gpg.d/bintray.gpg bintray-public.key.asc
rm bintray-public.key.asc

Then you just have to add this line to the unintall steps:

sudo rm /etc/apt/trusted.gpg.d/bintray.gpg
0reactions
lurchcommented, Feb 22, 2018

We’ve had a few sporadic reports of the pgp.mit.edu keyserver being temporarily unavailable, but luckily it usually seems to be a fairly short outage.

Read more comments on GitHub >

github_iconTop Results From Across the Web

The 11 Best Debian-based Linux Distributions - Tecmint
1. MX Linux · 2. Linux Mint · 3. Ubuntu · 4. Deepin · 5. AntiX · 6. PureOS · 7. Kali Linux...
Read more >
How Software Producers Can Distribute Their ... - Debian
If you want to distribute your packages only yourself, you can either distribute the .deb files you got while packaging, or create a...
Read more >
Top 10 Best Lightweight Linux Distros of 2020 - DigitalOcean
10 Best Lightweight Linux Distros of 2020 · 1. Crunchbang++ - Minimal Debian-based Linux Distro · 2. Manjaro XFCE - Best lightweight Arch-based...
Read more >
Debian-based distribution - DistroWatch.com
Please note that the best way to obtain the GNOME version is by searching for "nautilus", while KDE Plasma is represented by the...
Read more >
Getting Started With Dpkg on Debian-Based Linux Distros
Should there be a broken package, then the dpkg utility will give you advice on suggested fixes. dpkg --audit. Re-Configuring a Software Package....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found