Before starting your installation procedure, be sure you log in as root. Then follow the procedures below.
If these packages don't exist, you don't have to remove them.