If you install deb's normally they are signed, and it does check the signature.
Perhaps the one-liner should be amended to check the hash of the file first, and only run if it matches.
Perhaps the one-liner should be amended to check the hash of the file first, and only run if it matches.
One could argue that signed packages are still harder to check because publicly facing web servers are easier to hack, but you need to get the signature somewhere which is usually included in you distribution you downloaded through an insecure http or ftp connection.
It may be hard to exploit, but executing a script before you have completely downloaded it is simply a really bad idea.