#Ubuntu Install .net core 5 framework - .net-5

I installed .net6 but i need to have installed .net5
So, I removed .net6 and I installed .net5.
Now, when I run 'dotnet build' command I have the error:
A fatal error occurred. The folder [/usr/lib/dotnet/dotnet6-6.0.108/host/fxr] does not exist
Do you have some idea to help me, please.
Thanks

.NET 5 has reached its End of Life. If you are using it, you are on your own; don't expect any fixes for security issues that discovered every few weeks.
Anyway, sounds like you are using Ubuntu 22.04.
If so, you are out of luck. There's no simple way to install or run .NET 5 there. .NET 5 needs OpenSSL 1.0 or 1.1. Ubuntu 22.04 only has OpenSSL 3.0. Even if you install and manage to run .NET 5, it wont work and you will get OpenSSL errors.
Your best course of action is to install an older version of Ubuntu, such as 20.04.
Your specific error in this case is quite unrelated to above, though. Your error is because you seem to have installed some packages from Ubuntu's package repository and some packages from Microsoft's package repository. See https://github.com/dotnet/core/issues/7699#issuecomment-1222470580 for details. In particular you want to follow the steps in "Mixed state scenario 2: Use PMC packages after installing native Jammy packages". But that's not needed on Ubuntu 20.04 or similar OS that you need to make .NET 5 work at all.

Related

Google Cloud SDK v274.0.0 update asking for Python 2.7 interpreter on a machine that has only ever had Python 3+ (Windows)

This is really strange - I've found no help in the documentation, nor can we replicate the error on a machine of a similar build. The gcloud CLI has worked without any error on my Python 3 machine for months.
After today's update, any gcloud command is met with the below error message, looking for a Python 2.7 interpreter. I'm at a loss as to how to proceed - even when attempting to uninstall with the gcloud command the same error is thrown.
This is a known issue that is being tracked here
Version 2.74 installation is broken on Windows. You will need to install an older version. This can be fixed by hand-editing gcloud.cmd but I do not recommend this.
Use the following link to download a previous version after uninstalling the current version.
Installing from versioned archives
[UPDATE 12/30/2019]
Google has released a minor revision update that appears to fix this problem. The revised update is version 2.74.0.1.

How do I install .Net Core on a raspberry pi 3 running arm64 os?

How do I run an Asp.net application that is already been published for linux-arm which does not specifically mention for armhf which also is arm32 or arm64!?
To answer to my own question, firstly I am new to all Asp.net, and I have recently installed 64-bit OS for the Raspberry Pi 3 from https://github.com/bamarni/pi64. I did it make a simple web server, running nginx and 64bit support for mongodb and version 3.2 support out of the box! It was working great until I tried to run .Net Core app which currently has support for only armhf which is also arm32. I followed the steps from this blog https://blogs.msdn.microsoft.com/david/2017/07/20/setting_up_raspian_and_dotnet_core_2_0_on_a_raspberry_pi which is great for a armhf OS, and every time I tried to run the app with dotnet example.dll, I keep getting error like I do not have dotnet in reference in the system but I had physical symbolic link added! Then I went back to the github page and discovered that application support for armhf should be out of the box on the arm64 OS that bamarni kindly developed on debian stretch. Still I added
sudo dpkg --add-architecture armhf
sudo apt-get update
sudo apt-get install libc6:armhf
And notice that he had a dependency to install with libc6:armhf! Then I went back to the blogs.msdn.microsoft.com blog and tried to install the dependencies for .net core again with the commands
sudo apt-get install libunwind8:armhf
sudo apt-get install libunwind8:armhf gettext:armhf
and then went to the folder where I have run dotnet application.dll before and this time it worked!! Sadly I shortly after ran into Sql3 dependencies problem or something similar, but hey just google the problem like we all do and there is a solution to remove the Sql dependency and install Sql-lite using dotnet command. I am a noob and learning the way all these things working. I hope this helps someone along the way! Also hope someone with more knowledge explains things a bit more in sense than I did.

pebble-clay says my project is outdated, but it's not

I just updated the sdk to 4.1.4 and trying to install clay from command line I get the following message:
This projected is outdated (try 'pebble convert-project' or'pebble sdk install 2.9')
Now, I am not going to install the 2.9 sdk, of course, and I know that convert is just going to change appinfo.json into pakage.json, which I don't need to do because I am already on sdk 4.1.4.
Has anybody here had the same issue, how did you solve it?
Pebble-Clay is a JS package that can also be installed by running
npm install pebble-clay
This fixes the issue.
Alternatively downloading and installing the SDK 2.9 will fix it. (This will not overwrite the latest version of the SDK.)

Solving install issues with Python 3.4 on Windows

I have recently tried to install Python 3.4 as an alternative installation on my system in an attempt to familiarise myself before migrating code. My main Python installation is 2.7.6.
I tried the 64 bit installer for Windows, but it came up with an error message
There is a problem with this Windows Installer package. A program run as part of the setup did not finish as expected. Contact your support personnel or package vendor.
After this the install is rolled back (from the point shown below):
I have eventually found a solution to this posted below and decided to share in case anyone else was having the same issue.
After some looking online I found (here) that the issue was related to conflicting pip installs (I have a version already installed for Python 2.7 and apparently this is not compatible with the version that ships with Python 3.4.
To get around this issue I simply de-selected pip from the install options shown below and the install went ahead smoothly:
Run installer again and select PIP installation.
If the PIP fails to install with the same error, you may want to check environmental variables using a tool like http://eveditor.com/ which enables to check whether they are valid. If you had another version installed before, you most likely have wrong PYTHONHOME and PYTHONPATH variables. Fix them by setting them to relevant paths. e.g. PYTHONHOME=C:\python27 and PYTHONPATH=c:\python27\Lib
You will then be able to run and install PIP.
My issue was that I had a PYTHON_HOME or PYTHON_SOMETHING environment variable set. After removing the environment variable, the installation worked perfectly.
What worked for me, strangely enough, was the "Microsoft Program Install and Uninstall troubleshooter"
The "deselect pip" solution did not work for me.
My Python 3.4.1 install was failing with the same "A program run as part of the setup did not finish as expected" error. I tried both installing it on top of Python 3.4.0 and installing it in a new folder, but got the same error. I tried uninstalling Python 3.4.0 first, but got the error during the uninstall, as well.
I ran that Microsoft utility, which helped me uninstall 3.4.0, and was then able to install 3.4.1 cleanly. The utility has options for both problematic installs and uninstalls, so it may help even if you're doing a new install, not an upgrade.
I'm running 64-bit Windows 7, but was working with 32-bit Python versions.
I had similar issues with Python 3.4x on Windows 8.1. Even after a successful install, the uninstaller would fail in the same way. Ultimately, "Method 1" at the MS forum solved this for me when I ran Microsoft's (Un)installer Fix It.
I also had the problem that pip couldn't be installed like #ChrisPosser.
So I deselected pip and the installation went fine. afterwards I restarted the setup, chose "change python" and installed pip. now everything worked like expected.
If you have any problems with windows installers I recommend activating the verbose log like this:
msiexec /i python-2.7.10-1.609.2.msi /lv install-python.log
From the logs I could see that it was the pip install, which was not working.
Yes, I faced the same issue, and was working on this for the past one hour. Was trying to uninstall the Python 3.4.1 from the control panel -> uinstall program -> add/remove program, but was facing issues.
This trick worked for me:
Manually deleted the 3.4.1 folder, which was present in my C folders after I installed the 3.4.1
Then I followed these steps:
-> Went to Regedit.exe, checked in both HKEY_CURRENT_USER, HKEY_LOCAL SOFTWARE Folder, and deleted the Python folders there.
-> windows 8 -> Downloads -> 3.4.1 msi setup (Glad I never deleted it)
-> Right clicked on the msi setup and choose the repair option
-> The repair would re install the Python 3.4.1
-> After this, I un-installed the Python 3.4.1
-> Then I deleted the 3.4.1 msi setup.
Rebooted the system, and now, there is no instance of Python 3.4.1 in my system.
According to me when environment variables containing name 'Python' are created they somehow becomes related with python. I was unable to open idle (GUI PUTHON) and to uninstall it . Deleting a variable named 'PYTHON PATH' solved my all python related problems.
I had 3.7.4 and wanted to move to 2.7.13.
I uninstalled 3.7.4
Tried to install 2.7.13 but got the same error.
There was a 2.7.10 installer(not msi) also present, uninstalling which gave the same error.
So I downloaded 2.7.10 msi, installed it, and then just installed 2.7.13 from the downloaded msi and it worked fine. This overwriting worked because the major version i.e. 2.7 was same for both.
I don't know if this is helpful but after the hours I spent on this, I wanted to write out what worked for me.
Yup, I have already installed another version of python. I have uninstalled them using Program features. But still the same issue persisted because of the folder which was present in my C: drive. After deleting them manually, the installation got completed without errors
I faced this issue because of 2 conflicting versions of 7zip. Removing them both and installing just one fixed this issue.
I had python3.4 installed, then added 3.5, and deleted 3.4. That was a mistake. In trying to get a library to work, I had to go back to 3.4. I uninstalled 3.5, but couldn't uninstall 3.4 (folder deleted).
I ended up searching the registry in rededt32 for "python". There was a Guid folder with a number of entries that had c:\python34 and one more related to the same folder that I deleted. After this, the install worked correctly.
Windows 10.
Mine was linked to having installed an older version in the past, only for my own user account. I got around it by telling the installer to install Python for all users.
For me none of the suggested fixes worked for me. However checking the option "Install just for me" instead of "Install for all users" (Windows 10) worked for me. So this might be another option to try.

Installing ADT plugin 16.0.1 on Eclipse Indigo- windows

When I try to install the ADT 16.0.1 plugin on Eclipse Indigo java developer edition release 1 or Helios normal edition release 2, I get the following error:
Cannot complete the install because one or more required items could not be found.
Software currently installed: Shared profile 1.0.0.1316138460759(SharedProfile_epp.package.java 1.0.0.1316138460759)
Missing requirement: Shared profile 1.0.0.1316138460759 (SharedProfile_epp.package.java 1.0.0.1316138460759) requires 'org.maven.ide.eclipse [1.0.100.20110804-1717]' but it could not be found
I've tried to lookup the package it's refering to on apache, JDK reference and android developer reference but no luck!
This's not my first time installing ADT, I already have it installed on Ubuntu and it works. I also had the old release (ADT 15) installed on Eclipse galileo on windows, but I re-installed windows (i'm running windows 7 ultimate by the way) and I can run the old release but it's very good developing with ICS API-s.
So, if anyone could help, it would be highly appreciated.
Lots of people have this type of problem with many different required items missing.
The last time I had this problem it was fixed by going to Window->Preferences
Then selecting Install/Update->Available Software Sites
Make sure everything listed is checked
In my installation I have:
https://dl-ssl.google.com/android/eclipse/
http://download.eclipse.org/releases/indigo
http://download.eclipse.org/eclipse/updates/3.7
You may also need to run Eclipse as an administrator
I was able to install the ADT Plugin only after
I moved the eclipse folder to a location without spaces (e.g.: c:\development\android\eclipse
I ran the Eclipse Update procedure as administrator
Also I am using the 32bit version even though I use windows7 64bit.
you just need to run as administrator
run Eclipse with compatibility mode winXP pack 2 and Run as Administrator.
You can find it by Right clicking Eclipse.exe > Properties > Compatibility Tab

Resources