TrueNAS - Scale

TrueNAS Scale – Re-enable apt-get

By March 26, 2022No Comments

So, I updated to the official release version earlier this morning…. and was working on getting my InfiniBand cards up and running…

Well, I needed the infiniband diag tools, so, I ran:

[email protected]:~# apt-get install infiniband-diags
bash: /bin/apt-get: Permission denied

Oh, that is interesting.

So, I googled around, and found this: https://www.truenas.com/community/threads/no-apt-after-update-to-release.99579/

Seems… it was disabled by design, because people do dumb stuff, make their installations unsupportable…. and, then ask for support.

Well….. I want my infiniband working. So, how do we resolve this?

Simple!

[email protected]:~# chmod +x /bin/apt*
[email protected]:~# apt-get update
Get:1 http://deb.debian.org/debian bullseye InRelease [116 kB]
Get:2 http://deb.debian.org/debian bullseye/main Sources [8627 kB]
Get:3 http://deb.debian.org/debian bullseye/main amd64 Packages [8182 kB]
Get:4 http://deb.debian.org/debian bullseye/main Translation-en [6241 kB]
Fetched 23.1 MB in 5s (4973 kB/s)
Reading package lists... Done
[email protected]:~# apt-get install infiniband-diags
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done

If, you re-enabled apt-get, decided to do something stupid, such as running apt-get upgrade, and completely bricked your OS/Install…. PLEASE do us all a favor, slap yourself, and just reinstall instead of blowing up reddit and support because you did something unsupported…..

If you don’t know the implications of doing something, DON’T DO IT!

Also, if you DO understand the implications of something, and you know to not blow up support channels as a result of your actions, you can also update /etc/apt/sources.list to add in the debian repos… since, the ix-repos… are much smaller.

vi /etc/apt/sources.list

(Add the below lines)
deb http://deb.debian.org/debian bullseye main
deb-src http://deb.debian.org/debian bullseye main

I removed the other repos.... since it is shipped with apt-disabled anyways.

Leave a Reply

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 93 other subscribers

%d bloggers like this: