Wine will not reinstall

Asked by Barry

Wine would not update so I uninstalled it and then tried to reinstall the updated version. I the following error message:

FATAL ERROR: Wine
An apt-based error occurred and installation was unsuccessful

How do I reinstall the latest version of wine?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Murat Gunes
Solved:
Last query:
Last reply:
Revision history for this message
Murat Gunes (mgunes) said :
#1

1) Are you trying to install it from the official WINE repository?
2) Can you post the output of the "apt-cache policy wine" command?

Revision history for this message
Barry (bgreenebaum) said :
#2

1) Yes, I installed WINE from the Automatix repository.
2) command not found

Revision history for this message
Murat Gunes (mgunes) said :
#3

I'm not sure whether Automatix installs WINE from its own repository or just grabs the latest one from the official WINE repository (it's probably the latter), but in any case, I have to recommend against using Automatix. It still has many technical flaws, and as is likely the case here, can make it difficult to give support because it's hard to pinpoint where the breakage is when it's used.

And if you're getting "command not found" with apt-cache, there's something very wrong with your installation. The package "apt" may have been removed for some reason, and it absolutely shouldn't be; if that's the case, try going to http://packages.ubuntu.com, downloading the package "apt" for the version of Ubuntu you're using, and installing it with "sudo dpkg -i package_name.deb".

Before you do any of this, however, make sure you copy and paste the *exact* command I gave you, instead of typing it.

Revision history for this message
Barry (bgreenebaum) said :
#4

I put the command in again without the exclamation marks and got this responce:

wine:
  Installed: (none)
  Candidate: 0.9.43~winehq0~ubuntu~7.04-1
  Version table:
     0.9.43~winehq0~ubuntu~7.04-1 0
        500 http://wine.lowvoice.nl feisty/main Packages
        100 /var/lib/dpkg/status
     0.9.41-0ubuntu2~feisty1 0
        500 http://archive.ubuntu.com feisty-backports/universe Packages
     0.9.33-0ubuntu1 0
        500 http://us.archive.ubuntu.com feisty/universe Packages

Revision history for this message
Murat Gunes (mgunes) said :
#5

Try entering the following commands, one by one:

sudo apt-get clean
sudo apt-get update
sudo apt-get install wine

If it fails, try

sudo /etc/init.d/dns-clean start

And repeat the three commands above.

Revision history for this message
Barry (bgreenebaum) said :
#6

I did what you said but, I got this response:

WARNING: The following packages cannot be authenticated!
  wine
Install these packages without verification [y/N]? y
Err http://wine.lowvoice.nl feisty/main wine 0.9.43~winehq0~ubuntu~7.04-1
  Could not resolve 'wine.lowvoice.nl'
Failed to fetch http://wine.lowvoice.nl/apt/pool/main/w/wine/wine_0.9.43~winehq0~ubuntu~7.04-1_i386.deb Could not resolve 'wine.lowvoice.nl'
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

Revision history for this message
Murat Gunes (mgunes) said :
#7

Please post the output of the following commands:

"lsb_release -a"
"arch"

Revision history for this message
Barry (bgreenebaum) said :
#8

No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 7.04
Release: 7.04
Codename: feisty

i686

Revision history for this message
Murat Gunes (mgunes) said :
#9

1) Open your sources.list

ALT + F2, "gksudo gedit /etc/apt/sources.list"

2) Remove all files with http://wine.lowvoice.nl in them

3) Save and close the file

4) Remove existing WINE installation (if any)

"sudo apt-get remove --purge wine"

(remember to back up your WINE data)

5) Add official WINE repositories for Ubuntu 7.04

wget -q http://wine.budgetdedicated.com/apt/387EE263.gpg -O- | sudo apt-key add -
sudo wget http://wine.budgetdedicated.com/apt/sources.list.d/feisty.list -O /etc/apt/sources.list.d/winehq.list

6) Install

sudo apt-get update
sudo apt-get install wine

Revision history for this message
Murat Gunes (mgunes) said :
#10

Sorry, step 2 should be "Remove all *lines* with http://wine.lowvoice.nl in them".

Revision history for this message
Barry (bgreenebaum) said :
#11

I reinstalled wine but it was version 0.9.41 . How do I update to the most recent version 0.9.45? Because I still have no sound.

Revision history for this message
Murat Gunes (mgunes) said :
#12

If you carried out the instructions I posted, you should have 0.9.45. What does "apt-cache policy wine" return?

Revision history for this message
Barry (bgreenebaum) said :
#13

Installed: 0.9.41-0ubuntu2~feisty1
  Candidate: 0.9.41-0ubuntu2~feisty1
  Version table:
 *** 0.9.41-0ubuntu2~feisty1 0
        500 http://archive.ubuntu.com feisty-backports/universe Packages
        100 /var/lib/dpkg/status
     0.9.33-0ubuntu1 0
        500 http://us.archive.ubuntu.com feisty/universe Packages

Revision history for this message
Murat Gunes (mgunes) said :
#14

This means you haven't carried out the instructions I posted precisely, or something went wrong in the process. Did you get any errors? In System / Administration / Software Sources / Third Party Software, do you see "WineHQ" lines?

Revision history for this message
Barry (bgreenebaum) said :
#15

No "WineHQ"
I think the problem was in step 5, I was unable to do it.

Revision history for this message
Murat Gunes (mgunes) said :
#16

Just select each line with your mouse (click+drag), open a terminal, middle click and hit enter. Do it separately for each line.

Revision history for this message
Barry (bgreenebaum) said :
#17

Ok, I uninstalled wine and started over and it worked. But I still have no sound. Also, will the U buntu update manager keep wine up to date?

Revision history for this message
Best Murat Gunes (mgunes) said :
#18

Yes, you'll be notified of new releases and be able to update with the update manager now.

As for your sound issue, please mark this question solved and start a separate one for it. Don't forget to include details such as your Ubuntu version, version of WINE installed, brand and model of your sound card, etc.

Revision history for this message
Barry (bgreenebaum) said :
#19

Thank you for all your help.

Revision history for this message
Murat Gunes (mgunes) said :
#20

You're welcome. I recommend you refrain from using third party installers similar to Automatix in the future and stick to the official Ubuntu repositories as much as possible.