Having trouble Installing scdaemon

Hi I just received my Librem 15 and am trying to install scdaemon so I can set up my Librem Key but I keep getting stuck. Using Tilex for the first time I came across the link https://gnunn1.github.io/tilix-web/manual/vteconfig/ as there were some parts missing from Tilex that needed fixing, I chose option 2 which was to tick a preference to run command as login shell. This made an inprovement and got me to this stage, as Tilex would not do anything prior. Now when I run command I get this;

myname@username:~$ sudo apt install scdaemon
[sudo] password for myname:
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following NEW packages will be installed:
scdaemon
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 564 kB of archives.
After this operation, 849 kB of additional disk space will be used.
Err:1 https://repo.puri.sm/pureos green/main amd64 scdaemon amd64 2.2.8-3
404 Not Found [IP: 138.201.228.45 443]
E: Failed to fetch https://repo.puri.sm/pureos/pool/main/g/gnupg2/scdaemon_2.2.8-3_amd64.deb 404 Not Found [IP: 138.201.228.45 443]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
myname@username:~$ apt-get update
Reading package lists… Done
E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)
E: Unable to lock directory /var/lib/apt/lists/
W: Problem unlinking the file /var/cache/apt/pkgcache.bin - RemoveCaches (13: Permission denied)
W: Problem unlinking the file /var/cache/apt/srcpkgcache.bin - RemoveCaches (13: Permission denied)
myname@username:~$ --fix-missing?
Could not find the database of available applications, run update-command-not-found as root to fix this
–fix-missing?: command not found
myname@username:~$

Looks like you had a few errors there.

First - The IP address for the PureOS repo couldn’t be found (the 404 Not Found error). This may have been a temporary network error. If you try again, this part will likely succeeed.

Second - You ran apt-get update instead of sudo apt-get update. Not running with sudo is why you see those permission denied errors.

Third - --fix-missing on it’s own is not a command. The full command I think should have been sudo apt-get install --fix-missing

My guess is you probably copied those commands from somewhere, but wherever you copied them from had linebreaks in between for whatever reason, so your copy included the linebreaks, which broke the commands.

So I would first just try

sudo apt update
followed by
sudo apt install scdaemon

and see if that works (hopefully the network issue is resolved). If that doesn’t work, then post the new error.

Thanks very much taylor-williamc, I will try it.

Regards.