« first day (4453 days earlier)      last day (504 days later) » 

8:02 AM
@terdon Thanks - it worked perfectly! πŸ‘
 
 
1 hour later…
9:10 AM
@ArturMeinild You're welcome!
 
@terdon I used it to calculate the values for this answer: askubuntu.com/a/1444581/1066942 πŸ˜‰
 
 
4 hours later…
1:23 PM
Does anybody know why the Debian/Ubuntu APT developers haven't handled this yet??
0
A: What commands (exactly) should replace the deprecated apt-key?

Evi1M4chineIf you are on Linux Mint, there is an easy and correct solution (for the time being): (For plain Ubuntu, see below.) There is a version available that works fine, but it’s somehow not in the repositories for literal months now. (I would be ashamed, if I were the maintainer.) You can install it ma...

It seems the Mint guys have done their own fixed version - but I wonder why the official APT developers don't have this as a priority?
There was a time when this site got 3-4 questions per day about apt keys, because people were confused..
Indeed, the lack of official response to this also prompted me to make my own apt key installation script, also found in the thread..
 
Nice script, @ArturMeinild. But what is this supposed to be doing?
# Check argument 2 for keypath
case "$2" in
  # $2 is only a path (ending with /)
  /*/)
    keypath="${2%/*}"
    ;;
  # $2 is a path
  /*)
    keypath="${2%/*}"
    ;;
esac
As far as I can tell, in both cases you run the same command.
In any case, I really don't think you need it since ///// is equivalent to / even in POSIX. Try cd /usr///////////////////////local/bin for example and it will work just fine.
That said, I have to say it is a huge pleasure to read through 100 lines of shell code and not find a single example of common bad practices! :)
 
@terdon I'll have to revisit that part to see if it makes sense - you're probably correct though..
Yeah that seems rather silly now you mention it. 😁
I think maybe originally it was two different commands, and then I changed it at some point, and didn't realize it was now duplicate
 
Heh, been there, done that! :)
 
But yeah, next time I update, I'll have to fix that πŸ˜‰
I was just trying to make a script to make it easy for myself to install keys, and if anyone can use it, I'm just happy that's the case. 😎
 
1:49 PM
I should probably combine this case statement with the next one, which is also about setting the keypath.
@terdon I'm really happy to hear that. πŸ₯³
Since I'm not a professional programmer or even IT guy - this is just a hobby
I work with Railway Safety for an adult job 😁
However, I've very early on taught myself to use Shellcheck, and to follow best practices when I learn them πŸ˜‰
 
2:10 PM
@ArturMeinild Hey, I'm a biologist!
Ok, a bioinformatician, so not completely unrelated, but still.
@ArturMeinild good call!
 
3:05 PM
@terdon πŸ˜πŸ‘
 
 
2 hours later…
4:56 PM
Not sure if it is a problem with fbreader or not; latex not loading in .epub book
 
 
6 hours later…
10:44 PM
@ArturMeinild Retired ICU Registered Nurse: we are indeed a varied bunch :)
 

« first day (4453 days earlier)      last day (504 days later) »