Alexandre Lima's suggestion works, but it needs to be adjusted in case of not an English locale.
Try
# for FILE in $(dpkg-divert --list | grep nvidia-340 | awk '{print $3}'); do echo $FILE; done
first and choose the correct number for substring `{print $3}`
For example for Russian locale it will be $2:
# for FILE in $(dpkg-divert --list | grep nvidia-340 | awk '{print $2}'); do dpkg-divert --remove $FILE; done
Alexandre Lima's suggestion works, but it needs to be adjusted in case of not an English locale.
Try
# for FILE in $(dpkg-divert --list | grep nvidia-340 | awk '{print $3}'); do echo $FILE; done
first and choose the correct number for substring `{print $3}`
For example for Russian locale it will be $2:
# for FILE in $(dpkg-divert --list | grep nvidia-340 | awk '{print $2}'); do dpkg-divert --remove $FILE; done