Can't add application with apt install on container

tauras

New Member
Oct 28, 2023
2
0
1
Greetings,

For whatever reason, in a lxc container in proxmox I can’t find any applications via:

“apt search anything”. Anything is ANY application I try.

Here’s the output:

root@ffmpeg ~# apt install ffmpeg
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package ffmpeg
root@ffmpeg ~#

Yet, at the console at the top node (proxmox) I can find it. That is, “apt install ffmpeg” comes back with a list.
ffmpeg is JUST an example.

What gives?



Russ
 
Greetings,

I did an “apt update” followed by a “apt upgrade”. It updated many packages.
I then did a “apt install ffmpeg” and it WORKED!!

Not exactly sure what this did but it worked.
I suppose a best practice is to always do “apt update/upgrade” when you first run an install. I know this but forgot this time.



Thanks!



Russ