.NET 4.0+4.72 installation working, execution error

Questions about Wine on Linux
Locked
leder11011
Level 1
Level 1
Posts: 7
Joined: Sun Feb 14, 2021 11:01 am

.NET 4.0+4.72 installation working, execution error

Post by leder11011 »

Hello all,

I have installed on ubuntu 20.04 `wine64` repo, downloaded `winetricks` and installed both .NET 4.0 and 4.72 w/ howto from here:

https://appdb.winehq.org/objectManager. ... &iId=25478

Unfortunately when running `keepass.exe` I get the wine error like this:

Code: Select all

(base) leder@home-ryzen-desktop:~/Keepass2$ wine KeePass.exe 
0009:err:mscoree:CLRRuntimeInfo_GetRuntimeHost Wine Mono is not installed
Can anybody please help out?

P. S. I could not search for previous posts b/c your search is broken ATM...
jkfloris
Level 12
Level 12
Posts: 3141
Joined: Thu Aug 14, 2014 10:10 am

Re: .NET 4.0+4.72 installation working, execution error

Post by jkfloris »

Installing .Net 4.5 and up with winetricks is broken on Wine 6.x.
https://bugs.winehq.org/show_bug.cgi?id=49897

Why don't you use the native Linux version?

Code: Select all

sudo apt install keepass2
or run the Windows application with mono
https://keepass.info/help/v2/setup.html#mono
leder11011
Level 1
Level 1
Posts: 7
Joined: Sun Feb 14, 2021 11:01 am

Re: .NET 4.0+4.72 installation working, execution error

Post by leder11011 »

OK, thanks for the info!

BTW Both keepass2 repositories use mono for .NET execution which is not supported by the Plugin "Google Drive Sync" as described here:

https://github.com/walterpg/google-driv ... -778642802
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: .NET 4.0+4.72 installation working, execution error

Post by Bob Wya »

@leder11011

keepassx, or keepassxc, is also be compatible with keepass2 databases (I personally use keepassxc).

You're always better off using native Linux apps - whenever this is possible! 8)

Bob
leder11011
Level 1
Level 1
Posts: 7
Joined: Sun Feb 14, 2021 11:01 am

Re: .NET 4.0+4.72 installation working, execution error

Post by leder11011 »

Thanks Bob,

I already installed keepassxc, but there seems to be no Google drive sync possibility, as described in my previous post - that is waiting for approval!

IMHO it would be best to have a platform agnostic keepass2 implementation using .NET 5.0!

Gerrit
leder11011
Level 1
Level 1
Posts: 7
Joined: Sun Feb 14, 2021 11:01 am

Re: .NET 4.0+4.72 installation working, execution error

Post by leder11011 »

BTW you should remove Silver status of .NET in AppDB!
jkfloris
Level 12
Level 12
Posts: 3141
Joined: Thu Aug 14, 2014 10:10 am

Re: .NET 4.0+4.72 installation working, execution error

Post by jkfloris »

leder11011 wrote: Mon Feb 15, 2021 9:38 am BTW you should remove Silver status of .NET in AppDB!
You can post a new review yourself and change the status for Wine 6.x
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: .NET 4.0+4.72 installation working, execution error

Post by Bob Wya »

leder11011 wrote: Mon Feb 15, 2021 8:32 am Thanks Bob,

I already installed keepassxc, but there seems to be no Google drive sync possibility, as described in my previous post - that is waiting for approval!

IMHO it would be best to have a platform agnostic keepass2 implementation using .NET 5.0!

Gerrit
Hi Gerrit,

Have you considered using syncthing to sync your database? I've been using this for a few years now and it works a treat (between my PC's and Android smartphone). It's always nice not to have to rely 100% on proprietary services as well!

Bob
leder11011
Level 1
Level 1
Posts: 7
Joined: Sun Feb 14, 2021 11:01 am

Re: .NET 4.0+4.72 installation working, execution error

Post by leder11011 »

Bob! Nice try: syncthing does not answer in the forums but closes posts after 30 days.

I was struggling to sync a android smartphone to a linux box:
- device recovery worked
- I added firewall rule
- syncing of folders does not start...

Any ideas?
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: .NET 4.0+4.72 installation working, execution error

Post by Bob Wya »

leder11011 wrote: Thu Feb 18, 2021 1:50 am Bob! Nice try: syncthing does not answer in the forums but closes posts after 30 days.

I was struggling to sync a android smartphone to a linux box:
- device recovery worked
- I added firewall rule
- syncing of folders does not start...

Any ideas?
You could try:

Code: Select all

netstat -tulpn | grep syncthing
and punch holes through your firewall for the required ports.

See: Syncthing: Firewall Setup - for the default ports that need to be open ...

Bob
leder11011
Level 1
Level 1
Posts: 7
Joined: Sun Feb 14, 2021 11:01 am

Re: .NET 4.0+4.72 installation working, execution error

Post by leder11011 »

Ok, finally it synced. Though it is to much effort for me and I cannot sync remotely: I will stay with Google drive until I have a decent nextcloud solution.

Thanks again for your effort!
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: .NET 4.0+4.72 installation working, execution error

Post by Bob Wya »

leder11011 wrote: Thu Feb 18, 2021 10:01 am Ok, finally it synced. Though it is to much effort for me and I cannot sync remotely: I will stay with Google drive until I have a decent nextcloud solution.

Thanks again for your effort!
syncthing should also sync over the Internet, as long as relaysEnabled is true (default).

Bob
Locked