I installed youtube-dl_2015.06.04.1-1~webupd8~trusty0_all.deb
in my system.
It is not properly installed and I want to remove this package from my system. I am using the command below to remove this package.
I am getting following error.
$ sudo dpkg --purge youtube-dl_2015.06.04.1-1~webupd8~trusty0_all.deb
dpkg: error: --purge needs a valid package name but 'youtube-dl_2015.06.04.1-1~webupd8~trusty0_all.deb' is not: illegal package name in specifier 'youtube-dl_2015.06.04.1-1~webupd8~trusty0_all.deb': character `~' not allowed (only letters, digits and characters `-+._')
I also tried with below command
$ sudo dpkg --purge youtube-dl
dpkg: error processing package youtube-dl (--purge):
package is in a very bad inconsistent state; you should
reinstall it before attempting a removal
Errors were encountered while processing:
youtube-dl
How can I remove this?
sudo dpkg -r <Package_name>
– Mitch Jun 11 '15 at 18:00youtube-dl
with a changed package nameyoutube-dl_...
- I do not see deb file names often; and in my world, the underscore is by definition a name character... Learnded... thanks! – Volker Siegel Jun 11 '15 at 19:20