WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
- Looks like that the solution is just to replace the script:
from: apt update
to: apt-get update
E.g: I saw this in the internet: If I run this, I have the same error:
Code: Select all
sudo apt update | grep packages | cut -d '.' -f 1
Code: Select all
sudo apt-get update | grep packages | cut -d '.' -f 1