Unable to build Unreal 5.1 from source on Linux

Trying to build Unreal-5.1 from Github source.

OS: Ubuntu 22.04.1 LTS
Linux Kernel Version: 5.19.0-8.2-liquorix-amd64

So after checking-out the GitHub repository, here are the steps I performed:

git checkout origin/5.1
./Setup.sh
./GenerateProjectFiles.sh

So during GenerateProjectFiles, I already get the error below, and can’t even do make:

Attempting to set up UE pretty printers for gdb (existing UEPrinters.py, if any, will be overwritten)...

updated UEPrinters.py

cannot modify .gdbinit. Please add the below lines manually:

python

import sys

sys.path.append('/home/tommy/.config/Epic/GDBPrinters/')

from UEPrinters import register_ue_printers

register_ue_printers(None)

print("Registered pretty printers for UE classes")

end

Setting up Unreal Engine 5 project files...

Setting up bundled DotNet SDK

~/UnrealEngine/Engine/Source/Programs/Shared/EpicGames.IoHash/EpicGames.IoHash.csproj : error NU1301: Unable to load the service index for source https://api.nuget.org/v3/index.json. [~/UnrealEngine/Engine/Source/Programs/UnrealBuildTool/UnrealBuildTool.csproj]

~/UnrealEngine/Engine/Source/Programs/Shared/EpicGames.Core/EpicGames.Core.csproj : error NU1301: Unable to load the service index for source https://api.nuget.org/v3/index.json. [~/UnrealEngine/Engine/Source/Programs/UnrealBuildTool/UnrealBuildTool.csproj]

~/UnrealEngine/Engine/Source/Programs/Shared/EpicGames.IoHash/EpicGames.IoHash.csproj : error NU1301: Unable to load the service index for source https://api.nuget.org/v3/index.json. [~/UnrealEngine/Engine/Source/Programs/UnrealBuildTool/UnrealBuildTool.csproj]

~/UnrealEngine/Engine/Source/Programs/Shared/EpicGames.IoHash/EpicGames.IoHash.csproj : error NU1301: Unable to load the service index for source https://api.nuget.org/v3/index.json. [~/UnrealEngine/Engine/Source/Programs/UnrealBuildTool/UnrealBuildTool.csproj]

~/UnrealEngine/Engine/Source/Programs/Shared/EpicGames.Build/EpicGames.Build.csproj : error NU1301: Unable to load the service index for source https://api.nuget.org/v3/index.json. [~/UnrealEngine/Engine/Source/Programs/UnrealBuildTool/UnrealBuildTool.csproj]

~/UnrealEngine/Engine/Source/Programs/Shared/EpicGames.Build/EpicGames.Build.csproj : error NU1301: Unable to load the service index for source https://api.nuget.org/v3/index.json. [~/UnrealEngine/Engine/Source/Programs/UnrealBuildTool/UnrealBuildTool.csproj]

~/UnrealEngine/Engine/Source/Programs/Shared/EpicGames.IoHash/EpicGames.IoHash.csproj : error NU1301: Unable to load the service index for source https://api.nuget.org/v3/index.json. [~/UnrealEngine/Engine/Source/Programs/UnrealBuildTool/UnrealBuildTool.csproj]

~/UnrealEngine/Engine/Source/Programs/Shared/EpicGames.Core/EpicGames.Core.csproj : error NU1301: Unable to load the service index for source https://api.nuget.org/v3/index.json. [~/UnrealEngine/Engine/Source/Programs/UnrealBuildTool/UnrealBuildTool.csproj]

~/UnrealEngine/Engine/Source/Programs/Shared/EpicGames.Core/EpicGames.Core.csproj : error NU1301: Unable to load the service index for source https://api.nuget.org/v3/index.json. [~/UnrealEngine/Engine/Source/Programs/UnrealBuildTool/UnrealBuildTool.csproj]

~/UnrealEngine/Engine/Source/Programs/Shared/EpicGames.Build/EpicGames.Build.csproj : error NU1301: Unable to load the service index for source https://api.nuget.org/v3/index.json. [~/UnrealEngine/Engine/Source/Programs/UnrealBuildTool/UnrealBuildTool.csproj]

~/UnrealEngine/Engine/Source/Programs/Shared/EpicGames.Core/EpicGames.Core.csproj : error NU1301: Unable to load the service index for source https://api.nuget.org/v3/index.json. [~/UnrealEngine/Engine/Source/Programs/UnrealBuildTool/UnrealBuildTool.csproj]

~/UnrealEngine/Engine/Source/Programs/Shared/EpicGames.Build/EpicGames.Build.csproj : error NU1301: Unable to load the service index for source https://api.nuget.org/v3/index.json. [~/UnrealEngine/Engine/Source/Programs/UnrealBuildTool/UnrealBuildTool.csproj]

~/UnrealEngine/Engine/Source/Programs/Shared/EpicGames.IoHash/EpicGames.IoHash.csproj : error NU1301: Unable to load the service index for source https://api.nuget.org/v3/index.json. [~/UnrealEngine/Engine/Source/Programs/UnrealBuildTool/UnrealBuildTool.csproj]

~/UnrealEngine/Engine/Source/Programs/Shared/EpicGames.IoHash/EpicGames.IoHash.csproj : error NU1301: Unable to load the service index for source https://api.nuget.org/v3/index.json. [~/UnrealEngine/Engine/Source/Programs/UnrealBuildTool/UnrealBuildTool.csproj]

~/UnrealEngine/Engine/Source/Programs/Shared/EpicGames.Build/EpicGames.Build.csproj : error NU1301: Unable to load the service index for source https://api.nuget.org/v3/index.json. [~/UnrealEngine/Engine/Source/Programs/UnrealBuildTool/UnrealBuildTool.csproj]

~/UnrealEngine/Engine/Source/Programs/Shared/EpicGames.Core/EpicGames.Core.csproj : error NU1301: Unable to load the service index for source https://api.nuget.org/v3/index.json. [~/UnrealEngine/Engine/Source/Programs/UnrealBuildTool/UnrealBuildTool.csproj]

~/UnrealEngine/Engine/Source/Programs/Shared/EpicGames.Build/EpicGames.Build.csproj : error NU1301: Unable to load the service index for source https://api.nuget.org/v3/index.json. [~/UnrealEngine/Engine/Source/Programs/UnrealBuildTool/UnrealBuildTool.csproj]

~/UnrealEngine/Engine/Source/Programs/Shared/EpicGames.MsBuild/EpicGames.MsBuild.csproj : error NU1301: Unable to load the service index for source https://api.nuget.org/v3/index.json. [~/UnrealEngine/Engine/Source/Programs/UnrealBuildTool/UnrealBuildTool.csproj]

~/UnrealEngine/Engine/Source/Programs/Shared/EpicGames.MsBuild/EpicGames.MsBuild.csproj : error NU1301: Unable to load the service index for source https://api.nuget.org/v3/index.json. [~/UnrealEngine/Engine/Source/Programs/UnrealBuildTool/UnrealBuildTool.csproj]

~/UnrealEngine/Engine/Source/Programs/Shared/EpicGames.MsBuild/EpicGames.MsBuild.csproj : error NU1301: Unable to load the service index for source https://api.nuget.org/v3/index.json. [~/UnrealEngine/Engine/Source/Programs/UnrealBuildTool/UnrealBuildTool.csproj]

~/UnrealEngine/Engine/Source/Programs/Shared/EpicGames.MsBuild/EpicGames.MsBuild.csproj : error NU1301: Unable to load the service index for source https://api.nuget.org/v3/index.json. [~/UnrealEngine/Engine/Source/Programs/UnrealBuildTool/UnrealBuildTool.csproj]

~/UnrealEngine/Engine/Source/Programs/Shared/EpicGames.MsBuild/EpicGames.MsBuild.csproj : error NU1301: Unable to load the service index for source https://api.nuget.org/v3/index.json. [~/UnrealEngine/Engine/Source/Programs/UnrealBuildTool/UnrealBuildTool.csproj]

~/UnrealEngine/Engine/Source/Programs/Shared/EpicGames.MsBuild/EpicGames.MsBuild.csproj : error NU1301: Unable to load the service index for source https://api.nuget.org/v3/index.json. [~/UnrealEngine/Engine/Source/Programs/UnrealBuildTool/UnrealBuildTool.csproj]

~/UnrealEngine/Engine/Source/Programs/UnrealBuildTool/UnrealBuildTool.csproj : error NU1301: Unable to load the service index for source https://api.nuget.org/v3/index.json.

~/UnrealEngine/Engine/Source/Programs/UnrealBuildTool/UnrealBuildTool.csproj : error NU1301: Unable to load the service index for source https://api.nuget.org/v3/index.json.

~/UnrealEngine/Engine/Source/Programs/UnrealBuildTool/UnrealBuildTool.csproj : error NU1301: Unable to load the service index for source https://api.nuget.org/v3/index.json.

~/UnrealEngine/Engine/Source/Programs/UnrealBuildTool/UnrealBuildTool.csproj : error NU1301: Unable to load the service index for source https://api.nuget.org/v3/index.json.

~/UnrealEngine/Engine/Source/Programs/UnrealBuildTool/UnrealBuildTool.csproj : error NU1301: Unable to load the service index for source https://api.nuget.org/v3/index.json.

~/UnrealEngine/Engine/Source/Programs/UnrealBuildTool/UnrealBuildTool.csproj : error NU1301: Unable to load the service index for source https://api.nuget.org/v3/index.json.

~/UnrealEngine/Engine/Source/Programs/UnrealBuildTool/UnrealBuildTool.csproj : error NU1301: Unable to load the service index for source https://api.nuget.org/v3/index.json.

~/UnrealEngine/Engine/Source/Programs/UnrealBuildTool/UnrealBuildTool.csproj : error NU1301: Unable to load the service index for source https://api.nuget.org/v3/index.json.

~/UnrealEngine/Engine/Source/Programs/UnrealBuildTool/UnrealBuildTool.csproj : error NU1301: Unable to load the service index for source https://api.nuget.org/v3/index.json.

~/UnrealEngine/Engine/Source/Programs/UnrealBuildTool/UnrealBuildTool.csproj : error NU1301: Unable to load the service index for source https://api.nuget.org/v3/index.json.

~/UnrealEngine/Engine/Source/Programs/Shared/EpicGames.Serialization/EpicGames.Serialization.csproj : error NU1301: Unable to load the service index for source https://api.nuget.org/v3/index.json. [~/UnrealEngine/Engine/Source/Programs/UnrealBuildTool/UnrealBuildTool.csproj]

~/UnrealEngine/Engine/Source/Programs/Shared/EpicGames.Serialization/EpicGames.Serialization.csproj : error NU1301: Unable to load the service index for source https://api.nuget.org/v3/index.json. [~/UnrealEngine/Engine/Source/Programs/UnrealBuildTool/UnrealBuildTool.csproj]

~/UnrealEngine/Engine/Source/Programs/Shared/EpicGames.Serialization/EpicGames.Serialization.csproj : error NU1301: Unable to load the service index for source https://api.nuget.org/v3/index.json. [~/UnrealEngine/Engine/Source/Programs/UnrealBuildTool/UnrealBuildTool.csproj]

~/UnrealEngine/Engine/Source/Programs/Shared/EpicGames.Serialization/EpicGames.Serialization.csproj : error NU1301: Unable to load the service index for source https://api.nuget.org/v3/index.json. [~/UnrealEngine/Engine/Source/Programs/UnrealBuildTool/UnrealBuildTool.csproj]

~/UnrealEngine/Engine/Source/Programs/Shared/EpicGames.Serialization/EpicGames.Serialization.csproj : error NU1301: Unable to load the service index for source https://api.nuget.org/v3/index.json. [~/UnrealEngine/Engine/Source/Programs/UnrealBuildTool/UnrealBuildTool.csproj]

~/UnrealEngine/Engine/Source/Programs/Shared/EpicGames.Serialization/EpicGames.Serialization.csproj : error NU1301: Unable to load the service index for source https://api.nuget.org/v3/index.json. [~/UnrealEngine/Engine/Source/Programs/UnrealBuildTool/UnrealBuildTool.csproj]

~/UnrealEngine/Engine/Source/Programs/Shared/EpicGames.UHT/EpicGames.UHT.csproj : error NU1301: Unable to load the service index for source https://api.nuget.org/v3/index.json. [~/UnrealEngine/Engine/Source/Programs/UnrealBuildTool/UnrealBuildTool.csproj]

~/UnrealEngine/Engine/Source/Programs/Shared/EpicGames.UHT/EpicGames.UHT.csproj : error NU1301: Unable to load the service index for source https://api.nuget.org/v3/index.json. [~/UnrealEngine/Engine/Source/Programs/UnrealBuildTool/UnrealBuildTool.csproj]

~/UnrealEngine/Engine/Source/Programs/Shared/EpicGames.UHT/EpicGames.UHT.csproj : error NU1301: Unable to load the service index for source https://api.nuget.org/v3/index.json. [~/UnrealEngine/Engine/Source/Programs/UnrealBuildTool/UnrealBuildTool.csproj]

~/UnrealEngine/Engine/Source/Programs/Shared/EpicGames.UHT/EpicGames.UHT.csproj : error NU1301: Unable to load the service index for source https://api.nuget.org/v3/index.json. [~/UnrealEngine/Engine/Source/Programs/UnrealBuildTool/UnrealBuildTool.csproj]

~/UnrealEngine/Engine/Source/Programs/Shared/EpicGames.UHT/EpicGames.UHT.csproj : error NU1301: Unable to load the service index for source https://api.nuget.org/v3/index.json. [~/UnrealEngine/Engine/Source/Programs/UnrealBuildTool/UnrealBuildTool.csproj]

~/UnrealEngine/Engine/Source/Programs/Shared/EpicGames.UHT/EpicGames.UHT.csproj : error NU1301: Unable to load the service index for source https://api.nuget.org/v3/index.json. [~/UnrealEngine/Engine/Source/Programs/UnrealBuildTool/UnrealBuildTool.csproj]

Has anyone tried building 5.1 on Linux and encountered this?
Please HELPPPPP!!!

I had the same issue in arch linux, I fixed it by running

export SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt
export SSL_CERT_DIR=/dev/null

before I ran the ./GenerateProjectFiles.sh

If you get an error about ICU Package, you need to install libicu50

1 Like

icu
on suse it uses icu7.1.2.1 currently , i cant revert to icu5.0
but overriding the icu version in your user .profile file to include

export CLR_ICU_VERSION_OVERRIDE=71.1

works
(remeber you will need to update this when you install an updateed version later)

although it does not solve the
/home/david/Documents/UnrealEngine-5.0.3-release/Engine/Binaries/ThirdParty/DotNet/Linux/sdk/3.1.401/NuGet.targets(255,5): error : Unable to loa
d the service index for source https://api.nuget.org/v3/index.json. [/home/david/Documents/UnrealEngine-5.0.3-release/Engine/Source/Programs/Unr
ealBuildTool/UnrealBuildTool.csproj]
issue…
ha
install ca-certificates… with apt get /yast whater packagmanager you use (no there not installed by default)

resolved it for me

1 Like