I'm trying to install/uninstall packages in Debian but getting errors.
I can't remove or add any package, always getting the error.
I tried:
apt-get --remove purge package
apg-get remove package
dpkg -r package
debianpackage-management
Best Answer
You may try fixing the problem with a Python script published by pokerbirch on Ubuntu Forums (under CC BY-SA 4.0 license):
It scans the package definition files and adds a newline character if one is missing.