Skip to main content
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:

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?


[email protected]:~# chmod +x /bin/apt*
[email protected]:~# apt-get update
Get:1 bullseye InRelease [116 kB]
Get:2 bullseye/main Sources [8627 kB]
Get:3 bullseye/main amd64 Packages [8182 kB]
Get:4 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 bullseye main
deb-src bullseye main

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

Leave a Reply

Close Menu

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: