But after doing this I am getting KiCad 4.0.7 installed in my ubuntu instead of 5.1.6.
Solution:
Earlier there was no PPA compiled for 18.04 but there was for 20.04 that’s why it was not working and installing old KiCad.
Now KiCad team has released 18.04 compiled PPA as well so now using same commands we can get latest KiCad Installed.
I don’t use Ubuntu much. Have you tried a visual installer like Synaptic to see what is going on? I know Debian took forever to update to the 5.X but I thought even they were in the 5’s now. Sounds like you’re getting the old defaults somehow.
Also, do a purge of the old. You might also want to look in your .config directory to make sure it is completely gone before trying again because there are some gotchas that you can check out in the FAQ section about upgrading from 4 to 5.
Did you have a clean new installation of Ubuntu where you added the ppa and installed kicad? Did you have another repository activated before ppa:kicad/…?
There is a link to the FAQ section in the toolbar. It sounds as if your repository never got added. Check to see if it is listed in /etc/apt/sources.list .
Yes, Looks like it does as I am seeing this in result where it shows 5.1-releases.
Just now I uninstalled older version and trying to do this as a fresh installation.