I know Guitar pro doesn't support 64 bit, but i did get it to work with this command
jeggy@jeggy-XPS:~$ sudo dpkg --force-architecture -i GuitarPro6-rev9063.deb
[sudo] password for jeggy:
Selecting previously unselected package guitarpro6:i386.
(Reading database ... 285729 files and directories currently installed.)
Unpacking guitarpro6:i386 (from GuitarPro6-rev9063.deb) ...
dpkg: dependency problems prevent configuration of guitarpro6:i386:
guitarpro6:i386 depends on gksu.
dpkg: error processing guitarpro6:i386 (--install):
dependency problems - leaving unconfigured
Processing triggers for bamfdaemon ...
Rebuilding /usr/share/applications/bamf.index...
Processing triggers for desktop-file-utils ...
Processing triggers for gnome-menus ...
Errors were encountered while processing:
guitarpro6:i386
And even after i get that error the program perfectly works fine and updating and adding PPA's to the system works great, but when I'm trying to install some other software i get this error:
jeggy@jeggy-XPS:~$ sudo apt-get install elinks
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
elinks : Depends: libfsplib0 (>= 0.9) but it is not going to be installed
Depends: liblua50 (>= 5.0.3) but it is not going to be installed
Depends: liblualib50 (>= 5.0.3) but it is not going to be installed
Depends: libtre5 but it is not going to be installed
Depends: elinks-data (= 0.12~pre5-7ubuntu1) but it is not going to be installed
guitarpro6:i386 : Depends: gksu:i386 but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
And whenever i write "apt-get -f install" i get this
jeggy@jeggy-XPS:~$ sudo apt-get -f install
[sudo] password for jeggy:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
dconf-gsettings-backend:i386 python-levenshtein python-indicate libav-tools libstartup-notification0:i386
libxmuu1:i386 libavfilter-extra-2 libbabl-0.0-0 libgegl-0.0-0 libgconf2-4:i386 python-vobject libgtk-3-0:i386
libpam-cap:i386 python-utidylib libdconf0:i386 python-iniparse python-xmpp libpam-gnome-keyring:i386
libxcb-util0:i386 python-farstream
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
guitarpro6:i386
0 upgraded, 0 newly installed, 1 to remove and 7 not upgraded.
1 not fully installed or removed.
After this operation, 84,0 MB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 286979 files and directories currently installed.)
Removing guitarpro6:i386 ...
dpkg: warning: while removing guitarpro6:i386, directory '/opt/GuitarPro6/updater' not empty so not removed.
dpkg: warning: while removing guitarpro6:i386, directory '/opt/GuitarPro6/Data/Soundbanks' not empty so not removed.
Processing triggers for bamfdaemon ...
Rebuilding /usr/share/applications/bamf.index...
Processing triggers for desktop-file-utils ...
Processing triggers for gnome-menus ...
And now Guitar Pro is deleted.
How can i install Guitar Pro and still be able to install other software afterwards?
Safely Install GuitarPro without
apt-get
wanting to remove itgksu:i386
(which is the graphical root elevation package)apt-get
's whining is to manually install it and its dependencies. Here's how:How to manually examine and safely install a binary i386 deb with its dependencies
sudo dpkg --remove guitarpro:i386
gp6-full-linux-demo-r11100.deb
, yours may differ:ln -s gp6-full-linux-demo-r11100.deb gp6.deb
1. Examine the deb's architecture and dependencies
First, we examine the deb's dependencies without installing it.
dpkg-deb -I gp6.deb
shows us:So this is an i386 application, and all its dependencies are also going to be i386.
ia32-libs
i386 compatibility package, if you haven't already:sudo apt-get install ia32-libs
2. "Extract" the deb into a tar archive and examine its contents
dpkg-deb --fsys-tarfile gp6.deb > gp6.tar
And open up the File Manager (Nautilus), and mount the
gp6.tar
as an archive by right-clicking and selecting Open in Archive Mounter; after that you'll seegp6.tar
added to the bottom the left sidebar, with an eject icon next to it:Go to the View Menu for File Manager, and change the Sidebar to the Tree view option instead of Places:
Now expand the
gp6.tar
tree in the sidebar by clicking on the triangles; repeat for each level until you can see the folder structure of the file:From the structure, we see that the program's files go into two locations:
/opt
and/usr/share
:/opt
is self-contained and will not affect anything else on the system./usr/share
only contains icons/bitmaps, which are harmless.3. If it's safe, "install" the program by extracting the tar file
Go back to the terminal, and make sure you are in the directory containing the downloaded deb/tar files. Then type:
This will extract the program files in the appropriate locations, showing you the file names and progress. (Sample Output)
-C
switch tellstar
to perform this operation relative to the root directory, not the current directory.4. Figure out which dependencies are missing with
ldd
, install them, and rock-and-roll!Open up the
/opt/GuitarPro6
folder in the File Manager:lib-xxxx
files are included in the folder.Along with these included libraries and the
ia32-libs
package, most 32-bit dependencies should have been installed. Instead of blindly installing the dependencies we saw in the deb file info viaapt-get
--which can cause problems-- let's figure out if we're actually missing anything.cd /opt/GuitarPro6
Using
ldd
Type
ldd GuitarPro | grep found
, and the output will belibportaudio.so.2 => not found
ldd
prints the dependencies (shared libraries) of a program, and whether they exist or not on the system. Here's what the full output of GuitarPro looks like.grep found
.Here, only the libportaudio2 library is missing. But the dependencies said libportaudio0? (see step 1.) Which is it??
apt-cache search libportaudio
from the terminal.libportaudio2
andlibportaudio0
packages are available. Let's install the 2 first, withapt-get
asks to replace/removelibportaudio2
and/or other files, that's OK, because some libraries cannot be installed simultaneously in both 32- and 64-bit versions.Let's double-check dependencies one final time:
ldd GuitarPro6 | grep found
gives us nothing (that's what we want!)./GuitarPro: /opt/GuitarPro6/./libz.so.1: version ZLIB_1.2.3.3 not found (required by /usr/lib/i386-linux-gnu/libxml2.so.2)
this means that Guitar Pro is using a wrong version of libz, fix this by removing the libz.so.1 file from the GuitarPro6 directory: Guitar Pro will fall back to the libz version of your system.Exit the terminal and go back to the
/opt/GuitarPro6
folder in the File Manager. Double-click GuitarPro and...Clean-up the Download folder by deleting the tar file from the File Manager.
5. The launcher shortcut has already been added
Because the package already contained a
GuitarPro6.desktop
shortcut that was extracted to/usr/share/applications
, there is no need to manually create one. It's sitting there in the Launcher:I tried something out and got it to work!
I copied "/opt/GuitarPro6" somewhere.
I did
sudo apt-get -f install
to remove Guitar Pro.I copied the folder back into
/opt/GuitarPro6
and replaced everything there.I installed more packages as follows:
I downloaded this image GuitarPro icon and saved it in
/opt/GuitarPro6/icon.png
so i could have an image to create my own.desktop
file.I created a
.desktop
file withsudo gedit
:I saved this file into
/usr/share/applications
with the nameGuitarPro6.desktop
.Now everything works and I can find Guitar Pro in the dash.
I've also been struggling with this over the past few days. I've found the best way is to use the Windows executable under wine. Seems a lot more solid.
To answer your question, to stop
apt-get -f install
from removing software you need to add--no-remove
to the command you run. This will immediately abort the apt-get run if something is to be removed and your software will not be removed.However, what you are probably looking for is a way to have a system run normally, yet also have that software installed. What you will need to do is look at the output from when you forces the installation of the package with dpkg, and see what it is failing on, then install that dependency using
apt-get install package-name
In your case, it is gksu (specifically, gksu). Now you may find that when you attempt to install gksu that it has dependencies as well that need to be installed. Since you are forcing the 32-bit package install, you will need to manually install these dependencies using the same command above.
I simply installed gp6 under LinuxMint 14 32-Bit, ran updater and fixed issues with zlib by copying zlib.so1.2.27 to /opt/GuitarPro, renaming it to zlib.so.1, installed gksu and its dependencies, ran the updater again for bringing all up to date. Afterwards i connected my 64-bit Linux to 3s-Bit Linux via fish://username@mymachineIP/opt in Dolphin and copied the whole GuitarPro6 dir to my home dir on 64-Bit Linux and from there to /opt. Works.
Try this:
Download from http://www6.guitar-pro.com/en/index.php?pg=download the .deb file but don't install it.
Download and install getlibs Then:
Finally, launch it with (ignore errors):