Saturday 18 January 2014

Linux Mint Install Wine 1.6 NOT 1.4

My Linux learning experience continues!

The other day I installed Wine using the software repository. Until now, I had assumed that it would report the latest (at least stable) versions. This is not the case! It seems the Software Repository itself does not update, not by default anyway.

I had installed version 1.4. But it made Thunderbird Portable (a Windows app) crash on opening. I discovered this after a little googling showed me that this was a bug that was fixed subsequently in version 1.5.8 of Wine.

So, I decided to install version 1.6 which is also the latest stable version. But how to upgrade? There was no option in Software Repository.

Now I understand already that the terminal command "apt-get" is some kind of way to install programs and all their dependencies. I think it works by keeping a local copy of approved repositories that you can add to (taking care, of course) and then poll for various applications and their dependencies to be downloaded.

But all I could find was info on installing apps and nothing on upgrading them. In the end, I decided to uninstall Wine 1.4 using the Software Repository and then re-install it (v1.6) using the terminal window. I hoped that uninstalling it wouldn't unwind a ton of dependencies that would then break when trying to reinstall. A lot more complicated than your typical Windows uninstall and reinstall methinks, and a lot more to potentially go wrong.

So after uninstalling, I opened a terminal window and type in the following commands (thanks to this site):

sudo add-apt-repository ppa:ubuntu-wine/ppa
sudo apt-get update
sudo apt-get install wine1.6
sudo apt-get install winetricks

It went well. In fact, I had noticed after uninstalling that the Wine menus were still there. Strange, I thought. It made sense after running the commands above: the procedure actually uninstalled Wine 1.4. Pretty smart, eh? I'm not sure why it never really got uninstalled but at least the commands I used took care of that. I've attached the output below if you want to read it (my username is "user").

After that, I re-ran Thunderbird Portable and it worked pretty well. Only downside was it can't handle an IMAP connection - it crashed again - but it can handle POP3 fine. I actually just put a dummy account there as my main use for it is for locally stored mail I've moved from another installation of this application. I don't intend to use it to send and receive new email.

Here's the terminal window output:

user@computer ~/Desktop $ sudo add-apt-repository ppa:ubuntu-wine/ppa
[sudo] password for user: 
You are about to add the following PPA to your system:
 Welcome to the Wine Team PPA.  Here you can get the latest available Wine betas for every supported version of Ubuntu.  This PPA is managed by Scott Ritchie and Maarten Lankhorst.
 More info: https://launchpad.net/~ubuntu-wine/+archive/ppa
Press [ENTER] to continue or ctrl-c to cancel adding it

Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /tmp/tmp.b7487HkSGR --trustdb-name /etc/apt/trustdb.gpg --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver hkp://keyserver.ubuntu.com:80/ --recv 883E8688397576B6C509DF495A9A06AEF9CB8DB0
gpg: requesting key F9CB8DB0 from hkp server keyserver.ubuntu.com
gpg: key F9CB8DB0: public key "Launchpad PPA for Ubuntu Wine Team" imported
gpg: no ultimately trusted keys found
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
user@computer ~/Desktop $ sudo apt-get update
Hit http://archive.canonical.com precise Release.gpg
Get:1 http://ppa.launchpad.net precise Release.gpg [316 B]                    
Hit http://dl.google.com stable Release.gpg                                   
Hit http://archive.canonical.com precise Release                              
Get:2 http://ppa.launchpad.net precise Release [11.9 kB]                      
Hit http://dl.google.com stable Release                                       
Hit http://archive.ubuntu.com precise Release.gpg                             
Get:3 http://archive.ubuntu.com precise-updates Release.gpg [198 B]           
Get:4 http://security.ubuntu.com precise-security Release.gpg [198 B]         
Hit http://archive.canonical.com precise/partner i386 Packages                
Get:5 http://packages.linuxmint.com maya Release.gpg [198 B]                  
Hit http://dl.google.com stable/main i386 Packages                            
Ign http://archive.canonical.com precise/partner TranslationIndex             
Get:6 http://ppa.launchpad.net precise/main Sources [6,389 B]                 
Ign http://dl.google.com stable/main TranslationIndex                         
Get:7 http://ppa.launchpad.net precise/main i386 Packages [7,494 B]           
Ign http://ppa.launchpad.net precise/main TranslationIndex                    
Hit http://archive.ubuntu.com precise Release                                 
Get:8 http://security.ubuntu.com precise-security Release [49.6 kB]           
Get:9 http://packages.linuxmint.com maya Release [18.6 kB]                    
Get:10 http://archive.ubuntu.com precise-updates Release [49.6 kB]            
Get:11 http://packages.linuxmint.com maya/main i386 Packages [18.1 kB]        
Get:12 http://security.ubuntu.com precise-security/main i386 Packages [377 kB]
Ign http://archive.canonical.com precise/partner Translation-en_GB            
Hit http://archive.ubuntu.com precise/main i386 Packages                      
Hit http://archive.ubuntu.com precise/restricted i386 Packages                
Hit http://archive.ubuntu.com precise/universe i386 Packages                  
Hit http://archive.ubuntu.com precise/multiverse i386 Packages                
Hit http://archive.ubuntu.com precise/main TranslationIndex                   
Hit http://archive.ubuntu.com precise/multiverse TranslationIndex             
Hit http://archive.ubuntu.com precise/restricted TranslationIndex             
Hit http://archive.ubuntu.com precise/universe TranslationIndex               
Ign http://archive.canonical.com precise/partner Translation-en               
Ign http://ppa.launchpad.net precise/main Translation-en_GB                   
Ign http://ppa.launchpad.net precise/main Translation-en                      
Get:13 http://archive.ubuntu.com precise-updates/main i386 Packages [769 kB]  
Ign http://dl.google.com stable/main Translation-en_GB                        
Ign http://dl.google.com stable/main Translation-en                           
Get:14 http://packages.linuxmint.com maya/upstream i386 Packages [10.6 kB]    
Get:15 http://packages.linuxmint.com maya/import i386 Packages [42.0 kB]      
Ign http://packages.linuxmint.com maya/import TranslationIndex                
Ign http://packages.linuxmint.com maya/main TranslationIndex                  
Ign http://packages.linuxmint.com maya/upstream TranslationIndex              
Err http://packages.medibuntu.org precise Release.gpg                         
  Something wicked happened resolving 'packages.medibuntu.org:http' (-5 - No address associated with hostname)
Ign http://packages.medibuntu.org precise Release                             
Ign http://packages.medibuntu.org precise/free i386 Packages/DiffIndex        
Ign http://packages.medibuntu.org precise/non-free i386 Packages/DiffIndex    
Get:16 http://archive.ubuntu.com precise-updates/restricted i386 Packages [11.5 kB]
Ign http://packages.medibuntu.org precise/free TranslationIndex               
Get:17 http://archive.ubuntu.com precise-updates/universe i386 Packages [235 kB]
Ign http://packages.medibuntu.org precise/non-free TranslationIndex           
Ign http://packages.linuxmint.com maya/import Translation-en_GB               
Ign http://packages.linuxmint.com maya/import Translation-en                  
Get:18 http://security.ubuntu.com precise-security/restricted i386 Packages [4,620 B]
Ign http://packages.linuxmint.com maya/main Translation-en_GB                 
Get:19 http://security.ubuntu.com precise-security/universe i386 Packages [93.5 kB]
Ign http://packages.linuxmint.com maya/main Translation-en                    
Ign http://packages.linuxmint.com maya/upstream Translation-en_GB             
Ign http://packages.linuxmint.com maya/upstream Translation-en                
Get:20 http://security.ubuntu.com precise-security/multiverse i386 Packages [2,650 B]
Hit http://security.ubuntu.com precise-security/main TranslationIndex         
Hit http://security.ubuntu.com precise-security/multiverse TranslationIndex   
Hit http://security.ubuntu.com precise-security/restricted TranslationIndex
Hit http://security.ubuntu.com precise-security/universe TranslationIndex 
Hit http://security.ubuntu.com precise-security/main Translation-en       
Hit http://security.ubuntu.com precise-security/multiverse Translation-en 
Hit http://security.ubuntu.com precise-security/restricted Translation-en 
Hit http://security.ubuntu.com precise-security/universe Translation-en   
Get:21 http://archive.ubuntu.com precise-updates/multiverse i386 Packages [14.4 kB]
Hit http://archive.ubuntu.com precise-updates/main TranslationIndex           
Hit http://archive.ubuntu.com precise-updates/multiverse TranslationIndex     
Hit http://archive.ubuntu.com precise-updates/restricted TranslationIndex     
Hit http://archive.ubuntu.com precise-updates/universe TranslationIndex       
Hit http://archive.ubuntu.com precise/main Translation-en_GB                  
Hit http://archive.ubuntu.com precise/main Translation-en                     
Hit http://archive.ubuntu.com precise/multiverse Translation-en_GB            
Hit http://archive.ubuntu.com precise/multiverse Translation-en               
Hit http://archive.ubuntu.com precise/restricted Translation-en_GB            
Hit http://archive.ubuntu.com precise/restricted Translation-en               
Hit http://archive.ubuntu.com precise/universe Translation-en_GB              
Hit http://archive.ubuntu.com precise/universe Translation-en                 
Hit http://archive.ubuntu.com precise-updates/main Translation-en_GB          
Hit http://archive.ubuntu.com precise-updates/main Translation-en             
Hit http://archive.ubuntu.com precise-updates/multiverse Translation-en_GB    
Hit http://archive.ubuntu.com precise-updates/multiverse Translation-en       
Hit http://archive.ubuntu.com precise-updates/restricted Translation-en_GB    
Hit http://archive.ubuntu.com precise-updates/restricted Translation-en       
Hit http://archive.ubuntu.com precise-updates/universe Translation-en_GB      
Hit http://archive.ubuntu.com precise-updates/universe Translation-en         
Err http://packages.medibuntu.org precise/free i386 Packages                  
  Something wicked happened resolving 'packages.medibuntu.org:http' (-5 - No address associated with hostname)
Err http://packages.medibuntu.org precise/non-free i386 Packages              
  Something wicked happened resolving 'packages.medibuntu.org:http' (-5 - No address associated with hostname)
Err http://packages.medibuntu.org precise/free Translation-en_GB              
  Something wicked happened resolving 'packages.medibuntu.org:http' (-5 - No address associated with hostname)
Err http://packages.medibuntu.org precise/free Translation-en                 
  Something wicked happened resolving 'packages.medibuntu.org:http' (-5 - No address associated with hostname)
Err http://packages.medibuntu.org precise/non-free Translation-en_GB          
  Something wicked happened resolving 'packages.medibuntu.org:http' (-5 - No address associated with hostname)
Err http://packages.medibuntu.org precise/non-free Translation-en             
  Something wicked happened resolving 'packages.medibuntu.org:http' (-5 - No address associated with hostname)
Fetched 1,722 kB in 12s (139 kB/s)                                            
W: Failed to fetch http://packages.medibuntu.org/dists/precise/Release.gpg  Something wicked happened resolving 'packages.medibuntu.org:http' (-5 - No address associated with hostname)

W: Failed to fetch http://packages.medibuntu.org/dists/precise/free/binary-i386/Packages  Something wicked happened resolving 'packages.medibuntu.org:http' (-5 - No address associated with hostname)

W: Failed to fetch http://packages.medibuntu.org/dists/precise/non-free/binary-i386/Packages  Something wicked happened resolving 'packages.medibuntu.org:http' (-5 - No address associated with hostname)

W: Failed to fetch http://packages.medibuntu.org/dists/precise/free/i18n/Translation-en_GB  Something wicked happened resolving 'packages.medibuntu.org:http' (-5 - No address associated with hostname)

W: Failed to fetch http://packages.medibuntu.org/dists/precise/free/i18n/Translation-en  Something wicked happened resolving 'packages.medibuntu.org:http' (-5 - No address associated with hostname)

W: Failed to fetch http://packages.medibuntu.org/dists/precise/non-free/i18n/Translation-en_GB  Something wicked happened resolving 'packages.medibuntu.org:http' (-5 - No address associated with hostname)

W: Failed to fetch http://packages.medibuntu.org/dists/precise/non-free/i18n/Translation-en  Something wicked happened resolving 'packages.medibuntu.org:http' (-5 - No address associated with hostname)

E: Some index files failed to download. They have been ignored, or old ones used instead.
user@computer ~/Desktop $ sudo apt-get install wine1.6
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  libosmesa6 wine-gecko2.21 wine-mono0.0.8 wine1.6-i386
Suggested packages:
  dosbox
Recommended packages:
  wine1.5-i386
The following packages will be REMOVED
  wine1.4 wine1.4-common wine1.4-i386
The following NEW packages will be installed
  libosmesa6 wine-gecko2.21 wine-mono0.0.8 wine1.6 wine1.6-i386
0 upgraded, 5 newly installed, 3 to remove and 51 not upgraded.
Need to get 94.5 MB of archives.
After this operation, 95.2 MB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Get:1 http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu/ precise/main wine-gecko2.21 i386 2.21-0ubuntu1~ppa1~precise1 [20.8 MB]
Get:2 http://archive.ubuntu.com/ubuntu/ precise-updates/main libosmesa6 i386 8.0.4-0ubuntu0.7 [1,146 kB]
Get:3 http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu/ precise/main wine-mono0.0.8 all 0.0.8-0ubuntu1~ppa2 [46.6 MB]
Get:4 http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu/ precise/main wine1.6-i386 i386 1:1.6.1-0ubuntu1~ppa1~precise1 [24.8 MB]
Get:5 http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu/ precise/main wine1.6 i386 1:1.6.1-0ubuntu1~ppa1~precise1 [1,189 kB]
Fetched 94.5 MB in 7min 4s (223 kB/s)                                         
(Reading database ... 144278 files and directories currently installed.)
Removing wine1.4 ...
Removing wine1.4-i386 ...
Removing wine1.4-common ...
Processing triggers for man-db ...
Processing triggers for hicolor-icon-theme ...
Processing triggers for desktop-file-utils ...
Processing triggers for bamfdaemon ...
Rebuilding /usr/share/applications/bamf.index...
Processing triggers for gnome-menus ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Selecting previously unselected package wine-gecko2.21.
(Reading database ... 142968 files and directories currently installed.)
Unpacking wine-gecko2.21 (from .../wine-gecko2.21_2.21-0ubuntu1~ppa1~precise1_i386.deb) ...
Selecting previously unselected package wine-mono0.0.8.
Unpacking wine-mono0.0.8 (from .../wine-mono0.0.8_0.0.8-0ubuntu1~ppa2_all.deb) ...
Selecting previously unselected package wine1.6-i386.
Unpacking wine1.6-i386 (from .../wine1.6-i386_1%3a1.6.1-0ubuntu1~ppa1~precise1_i386.deb) ...
Selecting previously unselected package wine1.6.
Unpacking wine1.6 (from .../wine1.6_1%3a1.6.1-0ubuntu1~ppa1~precise1_i386.deb) ...
Selecting previously unselected package libosmesa6.
Unpacking libosmesa6 (from .../libosmesa6_8.0.4-0ubuntu0.7_i386.deb) ...
Processing triggers for hicolor-icon-theme ...
Processing triggers for man-db ...
Processing triggers for desktop-file-utils ...
Processing triggers for bamfdaemon ...
Rebuilding /usr/share/applications/bamf.index...
Processing triggers for gnome-menus ...
Setting up wine-gecko2.21 (2.21-0ubuntu1~ppa1~precise1) ...
Setting up wine-mono0.0.8 (0.0.8-0ubuntu1~ppa2) ...
Setting up libosmesa6 (8.0.4-0ubuntu0.7) ...
Setting up wine1.6 (1:1.6.1-0ubuntu1~ppa1~precise1) ...
Setting up wine1.6-i386 (1:1.6.1-0ubuntu1~ppa1~precise1) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
user@computer ~/Desktop $ sudo apt-get install winetricks
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  ttf-umefont gettext wine-gecko1.4 ttf-unfonts-core
Use 'apt-get autoremove' to remove them.
The following packages will be upgraded:
  winetricks
1 upgraded, 0 newly installed, 0 to remove and 50 not upgraded.
Need to get 151 kB of archives.
After this operation, 13.3 kB of additional disk space will be used.
Get:1 http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu/ precise/main winetricks i386 0.0+20130707~precise1~ppa1 [151 kB]
Fetched 151 kB in 1s (114 kB/s)      
(Reading database ... 144407 files and directories currently installed.)
Preparing to replace winetricks 0.0+20120308 (using .../winetricks_0.0+20130707~precise1~ppa1_i386.deb) ...
Unpacking replacement winetricks ...
Processing triggers for hicolor-icon-theme ...
Processing triggers for desktop-file-utils ...
Processing triggers for bamfdaemon ...
Rebuilding /usr/share/applications/bamf.index...
Processing triggers for gnome-menus ...
Setting up winetricks (0.0+20130707~precise1~ppa1) ...
user@computer ~/Desktop $ 

No comments:

Post a Comment

Popular Posts