when trying to install veracrypt: " root:could not open file '/etc/apt/sources.list' "

veracrypt-1.23-setup-console-x64

WARNING:root:could not open file ‘/etc/apt/sources.list’

Not real issue. See below.

veracrypt-1.23-setup-console-x64: command not found

Real issue.
Most likely there is no such binary

veracrypt-1.23-setup-console-x64

in your $PATH

Maybe you meant

./veracrypt-1.23-setup-console-x64

?

Meaning whatever instructions you followed are either not followed correctly to the dot or wrong.

This output comes from a a program named command-not-found which has an issue which is described here:

It has nothing to do with your issue. Your issue is that the path to veracrypt-1.23-setup-console-x64 is wrong.


https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=814352


Maybe,

would help to interact with veracrypt?