I downloaded visual studio code and also needed to download the .net core. I am on Ubuntu 16.04 and went to this page https://www.microsoft.com/net/core#ubuntu but accidentally ran all of the code under Ubuntu 14.04 / Linux Mint 17 without paying attention, instead of the section of code under for 16.04. Is there a way to undo this? I don't want to mess anything up if I run the other code.. Still new to installing packages from the terminal like this so I am not sure what to do. Thanks!
A quick analysis of the code indicates that you should find the line in /etc/apt/sources.list.d/dotnetdev.list that says
deb [arch=amd64] https://apt-mo.trafficmanager.net/repos/dotnet-release/ trusty main
and change trusty to xenial with your favorite text editor one choice would begksu gedit /etc/apt/sources.list.d/dotnetdev.list
You're done. No need to run the 16.04 code as you've corrected the target. Some answers are too simple for long drawn out explanations.
Source: https://www.microsoft.com/net/core#ubuntu