Ubuntu / WSL
Error saying you need to install .NET
In Ubuntu or WSL, if you have .NET 7 installed and you try and build, there may be an error saying you need to install .NET.
The easiest fix is to simply reinstall .NET by removing .NET, delete the PMC repository from APT by deleting the repo .list file, then reinstalling the .NET SDK
bash
sudo apt remove 'dotnet*'
sudo apt remove 'aspnetcore*'
sudo rm /etc/apt/sources.list.d/microsoft-prod.list
sudo apt update
sudo apt install dotnet-sdk-7.0
Error E: Repository 'https://packages.cloud.google.com/apt coral-edgetpu-stable InRelease' changed its 'Origin' value
occurs because the repository metadata has changed, and the package manager requires confirmation to trust the updated information.
- Update the Repository Information Force the system to trust the new repository metadata by running:
- Verify the Repository Configuration
Ensure that the repository is correctly configured in your
sources.list
orsources.list.d
directory. For example:
Text Only
deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.cloud.google.com/apt coral-edgetpu-stable main
- Remove Any Cached Data If the error persists, clear the cached repository data and re-run the update:
- Re-import the GPG Key (if necessary) If the repository’s GPG key has also changed or is missing, re-import it:
- Run the Update and Upgrade Finally, update and upgrade your system:
These steps should resolve the issue.