Installing Viber

Questions about Wine on Linux
Lenlabnj
Level 2
Level 2
Posts: 34
Joined: Sat Dec 26, 2020 10:02 am

Installing Viber

Post by Lenlabnj » Sat Dec 26, 2020 10:18 am

I am not very technical and new to Linux and Wine.

I am using an old 386 Lenova Laptop.

I installed Wine just fine. I did not make any adjustments to disk drives such as fake drives etc. as all I wanted was to use Wine for was to run Viber.

In terminal I used ......Sudo wine ViberSetup.exe to install Viber.

It installed and I was able to run viber and send messagee and end Viber.

The problem is when I open Wine again there is NO viber program to run.

So I went back to terminal and redid Sudo wine ViberSetup.exe

The installer must have found Viber was installed as it asks me if I want to repair it or Uninstall it.

So I select the repair and open wine and magically Viber starts up without me trying to find it in Wine or run it.

However Wine never shows a Viber program available to run the next time I open wine. So I have to go back into terminal and repeat the Viber setup process again.

Does anyone know what I am doing wrong? The vibersetup.exe file is in my Home Downloads folder.

User avatar
Bob Wya
Level 12
Level 12
Posts: 2925
Joined: Sat Oct 16, 2010 7:40 pm
Location: Scotland
Contact:

Re: Installing Viber

Post by Bob Wya » Sat Dec 26, 2020 3:10 pm

@Lenlabnj

See: WineHQ FAQ: 6 Using Wine.
Especially the section: 6.2 Should I run Wine as root? :shock:

Desktop integration, for Wine, depends on the packager choice, Desktop Environment and Linux distribution you are using...

Bob

Lenlabnj
Level 2
Level 2
Posts: 34
Joined: Sat Dec 26, 2020 10:02 am

Re: Installing Viber

Post by Lenlabnj » Mon Dec 28, 2020 11:10 am

Using MX Linux and the only 386 version it has which id Xfc. I will look into your reading suggestions for further help.

The other question I asked which I was hoping someone would help with is .....it appears that Viber did get installed as every time I rerun setup it asks me if I want to uninstall it or repair it. However in searching with Linux file manager even with hidden file option turn on I can't find any Viber files. So when I ran Sudo wine ViberSetup.exe where did Wine put the .exe or .msi file? Wine seems to know it exists as after I run the command and open Wine Viber starts up with all of the settings I set from a previous running. So somewhere there are files for Viber and as a Windows user I am perplexed as to why I can't find them in Linux file system.

User avatar
Bob Wya
Level 12
Level 12
Posts: 2925
Joined: Sat Oct 16, 2010 7:40 pm
Location: Scotland
Contact:

Re: Installing Viber

Post by Bob Wya » Tue Dec 29, 2020 7:27 am

Lenlabnj wrote:
Mon Dec 28, 2020 11:10 am
...
The other question I asked which I was hoping someone would help with is .....it appears that Viber did get installed as every time I rerun setup it asks me if I want to uninstall it or repair it.
...
See: WineHQ FAQ: 6.5 Wineprefixes

I tend to just run Wine using a terminal Window. However I do have a Github repository to provide Wine Desktop Integration for my Gentoo bobwya Overlay. This repository should support Debian as well...

See: Github: bobwya / wine-desktop-common

Bob

Lenlabnj
Level 2
Level 2
Posts: 34
Joined: Sat Dec 26, 2020 10:02 am

Re: Installing Viber

Post by Lenlabnj » Sat Jan 02, 2021 9:21 am

Update:
I read the links and they are good advice but do not work for installing Viber with Wine on a 386 computer.

The internet is a source for the issue I am having of trying to install Viber with Wine and getting the following: Setup Failed. Access denied 0X80070005.

The only way to get around this is to use: sudo wine ViberSetup.exe. At which point you are asked for your PW and once you supply it the install works. Viber starts and runs.

However I can never find the Viber executable to run it again. All of my settings in Viber are saved. Using Q4Wine or terminal does not work as I can’t find or see the Viber program to execute.

The only way I can run Viber is to: sudo wine ViberSetup.exe. I provide my PW and answer the question on the screen as to do a repair or uninstall. I answer repair and wait a few minutes and Viber starts with all of my saved settings.

jkfloris
Level 9
Level 9
Posts: 1274
Joined: Thu Aug 14, 2014 10:10 am

Re: Installing Viber

Post by jkfloris » Sat Jan 02, 2021 11:56 am

I've tried the Windows XP version of Viber with Wine 6.0-rc4
Do the following commands work?

Code: Select all

# --- Install Viber ---
# cd to the directory where you have downloaded 'ViberSetup.exe'
WINEPREFIX=~/ViberOnWine wine ViberSetup.exe
# Close Viber

# --- Run Viber ---
cd $HOME/ViberOnWine/drive_c/users/$USER/Local\ Settings/Application\ Data/Viber
WINEPREFIX=~/ViberOnWine wine Viber.exe

Lenlabnj
Level 2
Level 2
Posts: 34
Joined: Sat Dec 26, 2020 10:02 am

Re: Installing Viber

Post by Lenlabnj » Sun Jan 03, 2021 1:16 pm

jfkloris,

Do I need to uninstall it before I run these commands?

jkfloris
Level 9
Level 9
Posts: 1274
Joined: Thu Aug 14, 2014 10:10 am

Re: Installing Viber

Post by jkfloris » Sun Jan 03, 2021 1:37 pm

Lenlabnj wrote:
Sun Jan 03, 2021 1:16 pm
Do I need to uninstall it before I run these commands?
No that is not necessary

Lenlabnj
Level 2
Level 2
Posts: 34
Joined: Sat Dec 26, 2020 10:02 am

Re: Installing Viber

Post by Lenlabnj » Mon Jan 04, 2021 12:57 pm

jkfloris'

I tried the new commands you gave me to install viber. The commands themselves worked but I still encountered the Setup Failed. Access denied 0X80070005.error. So back to square one.

I can still run with sudo wine ViberSetup.exe and get the option to repair or uninstall and choosing to repair Viber will then open and run.

Not sure where to go from here. If you have any more suggestions I would be happy to try them.

jkfloris
Level 9
Level 9
Posts: 1274
Joined: Thu Aug 14, 2014 10:10 am

Re: Installing Viber

Post by jkfloris » Mon Jan 04, 2021 6:03 pm

I tried the new commands you gave me to install viber. The commands themselves worked but I still encountered the Setup Failed. Access denied 0X80070005.error.
Which version of Wine do you use?
Did you try the Windows XP version of Viber?
Can you post a terminal output?
I can still run with sudo wine ViberSetup.exe and get the option to repair or uninstall and choosing to repair Viber will then open and run.
Probably you can find your Viber installation in:
/root/.wine/drive_c/users/root/Local Settings/Application Data/Viber

Lenlabnj
Level 2
Level 2
Posts: 34
Joined: Sat Dec 26, 2020 10:02 am

Re: Installing Viber

Post by Lenlabnj » Tue Jan 05, 2021 9:27 am

AnswersL

Yes using the Windows XP version of Viber.
Q4Wine 1.3.11-1
Wine32 4.0-2

Lenlabnj
Level 2
Level 2
Posts: 34
Joined: Sat Dec 26, 2020 10:02 am

Re: Installing Viber

Post by Lenlabnj » Tue Jan 05, 2021 9:41 am

Also following your instructions after signing in as root (as I could not access root otherwise) I found the Viber.exe.

So it appears that wine ViberSetup.exe is putting the Viber.exe file in a folder that I can't access unless I sign in as root? That does not make sense. This is why Q4Wine can't access it. Also why in terminal the command wine ViberSetup.exe fails with access denied?

So is there a workaround other that me signing in as root?

Lenlabnj
Level 2
Level 2
Posts: 34
Joined: Sat Dec 26, 2020 10:02 am

Re: Installing Viber

Post by Lenlabnj » Tue Jan 05, 2021 9:50 am

Also while signed in as root I checked the list of apps and now I see Viber and I can run it from the app list! Wow! That's progress and what I want but not signed in as root. I believe that is not a good thing for security reasons...right?

jkfloris
Level 9
Level 9
Posts: 1274
Joined: Thu Aug 14, 2014 10:10 am

Re: Installing Viber

Post by jkfloris » Tue Jan 05, 2021 9:54 am

It's obvious that Viber is installed in the /root directory if you use sudo.
Did you read:
- https://wiki.winehq.org/FAQ#Should_I_ru ... as_root.3F
- https://wiki.winehq.org/FAQ#I_ran_wine_ ... _errors.3F
Wine32 4.0-2
Update Wine to a more recent version and try again.

Lenlabnj
Level 2
Level 2
Posts: 34
Joined: Sat Dec 26, 2020 10:02 am

Re: Installing Viber

Post by Lenlabnj » Tue Jan 05, 2021 11:03 am

Yes but I tried to initially install it using Q4wine and received the access failed msg so I then tried terminal and got the same thing and finally tried sudo. If my memory is correct this was the chain of events.

So how do I remedy this? Can I just move the files out of root? Should I while logged in as root uninstall viber and wine?

Suggestions

Lenlabnj
Level 2
Level 2
Posts: 34
Joined: Sat Dec 26, 2020 10:02 am

Re: Installing Viber

Post by Lenlabnj » Tue Jan 05, 2021 11:07 am

The thing is when I am not signed in as root and in terminal do: wine ViberSetup.exe I get the access denied message. So something else is at play here impacting the process that is requiring root access.

jkfloris
Level 9
Level 9
Posts: 1274
Joined: Thu Aug 14, 2014 10:10 am

Re: Installing Viber

Post by jkfloris » Tue Jan 05, 2021 12:02 pm

Please try to update your Wine installation first so we can make sure we are not finding an old bug and rename or delete your ~/.wine folder.

Lenlabnj
Level 2
Level 2
Posts: 34
Joined: Sat Dec 26, 2020 10:02 am

Re: Installing Viber

Post by Lenlabnj » Tue Jan 05, 2021 2:15 pm

Thanks jkfloris for the continued hand holding and help.

Re: rename or delete ~/.wine

Where is the ~/.wine folder that I should be renaming? In home/len I have a .wine folder is that the one?

How do I update the wine installation after I do this? With synaptic package manager? With Terminal and if with terminal what command?

jkfloris
Level 9
Level 9
Posts: 1274
Joined: Thu Aug 14, 2014 10:10 am

Re: Installing Viber

Post by jkfloris » Tue Jan 05, 2021 4:08 pm

In home/len I have a .wine folder is that the one?
Yes, that's the right directory. ~ is an abbreviation of /home/username

MX Linux is based on Debian stable, so you can use this manual.
Don't forget to install the libfaudio0 package from https://download.opensuse.org/repositor ... r_i386.deb

Lenlabnj
Level 2
Level 2
Posts: 34
Joined: Sat Dec 26, 2020 10:02 am

Re: Installing Viber

Post by Lenlabnj » Wed Jan 06, 2021 10:18 am

I am not authorized to do this as I am stopped at this point. So the instructions are missing something at this point:
dd the repository to /etc/apt/sources.list or create a *.list under /etc/apt/sources.list.d/ with the following content:
For this version: Add this content to /etc/apt/sources.list:
Debian 10 (Buster) deb https://dl.winehq.org/wine-builds/debian/ buster main
Debian Testing (currently Bullseye) deb https://dl.winehq.org/wine-builds/debian/ bullseye main

So I need more advice on how to add.

Lenlabnj
Level 2
Level 2
Posts: 34
Joined: Sat Dec 26, 2020 10:02 am

Re: Installing Viber

Post by Lenlabnj » Wed Jan 06, 2021 10:25 am

There are 4 folders under /etc/apt/sources.list.d/ and the instructions don't tell me where to put: deb https://dl.winehq.org/wine-builds/debian/

and as I said in the previous post if I try to put it in a file I get stopped. I first tried to put it in debian.list
the 4 ffiles that are in this folder are: debian.list, debian-stable-updates.list. mx.list, various.list

jkfloris
Level 9
Level 9
Posts: 1274
Joined: Thu Aug 14, 2014 10:10 am

Re: Installing Viber

Post by jkfloris » Wed Jan 06, 2021 10:36 am

The next command should work:

Code: Select all

echo "deb https://dl.winehq.org/wine-builds/debian/ buster main" | sudo tee /etc/apt/sources.list.d/winehq.list

Lenlabnj
Level 2
Level 2
Posts: 34
Joined: Sat Dec 26, 2020 10:02 am

Re: Installing Viber

Post by Lenlabnj » Wed Jan 06, 2021 11:11 am

Did this and got messages:
$ sudo apt install --install-recommends winehq-stable
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
winehq-stable : Depends: wine-stable (= 5.0.3~buster) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Lenlabnj
Level 2
Level 2
Posts: 34
Joined: Sat Dec 26, 2020 10:02 am

Re: Installing Viber

Post by Lenlabnj » Wed Jan 06, 2021 11:14 am

Also this happend when I did $ sudo apt update
Hit:1 http://mirrors.rit.edu/mxlinux/mx-packages/mx/repo buster InRelease
Get:2 https://dl.winehq.org/wine-builds/debian buster InRelease [6,259 B]
Get:3 https://dl.winehq.org/wine-builds/debian buster/main i386 Packages [956 kB]
Get:4 http://deb.debian.org/debian buster-updates InRelease [51.9 kB]
Hit:5 http://deb.debian.org/debian buster InRelease
Get:6 http://deb.debian.org/debian-security buster/updates InRelease [65.4 kB]
Get:7 http://deb.debian.org/debian-security buster/updates/main i386 Packages [259 kB]
Fetched 1,338 kB in 7s (202 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
1 package can be upgraded. Run 'apt list --upgradable' to see it.

Lenlabnj
Level 2
Level 2
Posts: 34
Joined: Sat Dec 26, 2020 10:02 am

Re: Installing Viber

Post by Lenlabnj » Wed Jan 06, 2021 11:16 am

$ apt list --upgradable
Listing... Done
wine-staging-i386/stable 6.0~rc5~buster i386 [upgradable from: 5.18-1mx19+1]
N: There are 92 additional versions. Please use the '-a' switch to see them.

Post Reply