Note that --local-filename=~/filename.deb doesn't work because '~' is a shell expansion that doesn't occur. It would have been substituted if the command line was --local-filename ~/filename.deb.
Note that --local- filename= ~/filename. deb doesn't work because '~' is a shell expansion that doesn't occur. It would have been substituted if the command line was --local-filename ~/filename.deb.