error with adb library dependencies on 64-bit ubuntu - android

when trying to create my test project in an Ubuntu 12.1 machine:
adb install bin/opine_test-debug.apk
adb: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
So I go to install lib64ncurses (I am indeed running a 64 bit OS):
sudo apt-get install lib64ncurses5
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:
lib64ncurses5:i386 : Depends: lib64tinfo5:i386 (= 5.9-10ubuntu1) but it is not going to be installed
Depends: libc6-amd64:i386 (>= 2.14) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
And it turns out that the offending package is libc-amd64:
sudo apt-get install libc6-amd64
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:
libc6 : Conflicts: libc6-amd64:i386 but 2.15-0ubuntu20.1 is to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
I am officially stumped. What kind of problems is this?

Try:
sudo apt-get install lib32ncurses5 lib32stdc++6

*sudo apt-get install libstdc++6:i386 libgcc1:i386 zlib1g:i386 libncurses5:i386
for running the emulator you need that additional package:
*sudo apt-get install libsdl1.2debian:i386
then install ia32-libs:
*apt-get install ia32-libs

Related

Unable to correct problems, you have held broken packages -bluez:i386 conflicts bluez-alsa:i386

I am trying to install ia32-lib by entering the following commands:
sudo apt-get install ia32-libs
for android os but can not be installed correctly
and shows the following errors:
The following packages have unmet dependencies:
ia32-libs : Depends: ia32-libs-multiarch
E: Unable to correct problems, you have held broken packages.
So I add the ia32-libs-multiarch before ia32-libs due to dependency as follows:
sudo apt-get install ia32-libs-multiarch ia32-libs
the same problems again to be happened ia32 -libs-mlutiarch:i386 which depends on
bluez-alsa:i386 .............
Finally, I run the final commands:
sudo apt-get install bluez:i386 bluez-alsa:i386 ia32-libs-multiarch:i386 ia32-libs
which shows the following messages:
bluez:i386 is already the neweset version(5.37-0ubuntu5).
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:
bluez:i386 : Conflicts: bluez-alsa:i386 but 4.101-0ubuntu8b1 is to be installed
E: Unable to correct problems, you have held broken packages.
So, What does the above message means ? Shall I need to remove the previous bluez:i386 due to the conflict with bluez-alsa:i386 ? How can I fix this problem?

Application not running on Eclipse with ADT bundle

I am trying to develop an application on Eclipse with ADT bundle, but when I try to run my application it shows the following error:
[2015-09-08 21:27:53 - gpio] /home/tejvir/android-sdks/build-tools/23.0.1/aapt: error while loading shared libraries: libgcc_s.so.1: cannot open shared object file: No such file or directory
What should be done in this situation?
I tried the solutions in the other question mentioned above but I have encountered the following errors in it :
sudo apt-get -qqy install libncurses5:i386 libstdc++6:i386 zlib1g:i386
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
I have also tried the other solution given on the same link and even that has not provided me with the solution.
Following are the errors I have encountered while trying the solution:
sudo apt-get install libc6-i386 lib32stdc++6 lib32gcc1 lib32ncurses5
Reading package lists... Done
Building dependency tree
Reading state information... Done
lib32ncurses5 is already the newest version.
libc6-i386 is already the newest version.
libc6-i386 set to manually installed.
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:
lib32gcc1 : Depends: gcc-4.9-base (= 4.9-20140406-0ubuntu1) but 4.9.1-0ubuntu1 is to be installed
lib32stdc++6 : Depends: gcc-4.8-base (= 4.8.2-19ubuntu1) but 4.8.4-2ubuntu1~14.04 is to be installed
E: Unable to correct problems, you have held broken packages.
So I am kinda stuck here.
I have actually solved my question with some expert help.
I have explained the problem above but the real problem was that my gcc was having some issues regarding which version to run and the versions that i had installed were not for my distribution i.e. Ubuntu 14.04. And in addition to that adb that comes for linux has been updated to run with 32 bit architecture but not with 64 bit architecture. That is the reason why my adb is showing errors for files that already exist in my system.
Now to remove these errors i first needed to correct my gcc and then work my way up in order to install all the required 32 bit architecture libraries.
So now i will explain how i solved my problem.
NOTE: This worked for my computer and i am not sure if it is going to work on every PC. But i think it will work on almost all PCs.
Let's Go.
Run the following commands.
1. sudo apt-get install gcc-4.8base=4.8.2-19ubuntu1
Now if you are getting the following error:
The following packages have unmet dependencies:
indicator-bluetooth : Depends: unity-control-center but it is not going to be installed or
gnome-control-center but it is not going to be installed or
ubuntu-system-settings but it is not going to be installed
libdee-1.0-4 : Depends: libicu52 (>= 52~m1-1~) but it is not going to be installed
system-image-dbus : Depends: system-image-common (= 2.2-0ubuntu1) but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
Next run the following command:
2. apt-cache policy libicu52 libdee-1.0-4 system-image-dbus system-image-common
Now check if you are getting the following output:
libicu52:
Installed: 52.1-3ubuntu0.3
Candidate: 52.1-3ubuntu0.3
Version table:
*** 52.1-3ubuntu0.3 0
500 security.ubuntu.com/ubuntu trusty-security/main amd64 Packages
100 /var/lib/dpkg/status
52.1-3 0
500 in.archive.ubuntu.com/ubuntu trusty/main amd64 Packages
libdee-1.0-4:
Installed: 1.2.7+14.04.20140324-0ubuntu1
Candidate: 1.2.7+14.04.20140324-0ubuntu1
Version table:
*** 1.2.7+14.04.20140324-0ubuntu1 0
500 in.archive.ubuntu.com/ubuntu trusty/main amd64 Packages
100 /var/lib/dpkg/status
system-image-dbus:
Installed: (none)
Candidate: 2.2-0ubuntu1
Version table:
2.2-0ubuntu1 0
If you are with me up to this point. Then this means that you have really messed up your system. From this point onwards we will first try to fix our system.
Run the following two commands:
3. sudo sed -i.bak 's/http:\/\/in./http:\/\//' /etc/apt/sources.list
4. sudo apt-get update
After this is done.
Execute these two commands
5. sudo apt-get install system-image-dbus
6. sudo apt-get install system-image-common
Now after this run the following command:
7. sudo apt-get install gcc-4.8-base=4.8.2-19ubuntu1
If this file gets installed on your PC without any problem then you are basically done. You don't need to go ahead with this. But if your system prints out the following error
The following packages have unmet dependencies:
indicator-bluetooth : Depends: unity-control-center but it is not going to be installed or
gnome-control-center but it is not going to be installed or
ubuntu-system-settings but it is not going to be installed
libdee-1.0-4 : Depends: libicu52 (>= 52~m1-1~) but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
If you encounter this error then run the following command.
8. sudo apt-get install --reinstall libicu52
9. sudo apt-get install libdee-1.0-4
10. sudo apt-get dist-upgrade
Now this last command might take some time depending on your internet connection.
After this is done... Follow the below sets of instructions and you are done.
Start Software & Updates
Select the tab Updates
Select Recommended updates (trusty-updates) (In my screenshot it's vivid-updates, but that's just an example)
And click Close
Click Reload in this dialog
Now upgrade your system (again ;))
sudo apt-get dist-upgrade
And install
sudo apt-get install libstdc++6
And after this you are good to go.. :)
Thank You

installing ia32-libs package

I have installed Ubuntu 12.10, where I need to work with Android ADT bundle. When I try to open the log cat of ADT it was showing the following error
Cannot run program "xxx/sdk/platform-tools/adb": error=2,
Somehow I found the installing ia32-libs package will solve the issue.
When I was trying to install the ia32-libs package on Ubuntu 12.10 I was getting following error message:
g500#G500:~$ sudo apt-get install ia32-libs
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:
ia32-libs : Depends: ia32-libs-multiarch
virtualbox-4.3 : Depends: libqt4-opengl (>= 4:4.7.2) but it is not going to be installed
Depends: libsdl1.2debian (>= 1.2.10-1) but it is not going to be installed
Depends: libvpx1 (>= 1.0.0) but it is not going to be installed
Recommends: libsdl-ttf2.0-0 but it is not going to be installed
Recommends: dkms but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
Also I have tried the following command:
sudo apt-get install libncurses5:i386 libstdc++6:i386 zlib1g:i386
but didn't get the expected result.
Can someone help me regarding this issues on how to install ia32-libs package on Ubuntu 12.10 OS properly, so that I can run android adb.
firstly replace ubuntu 12.10 source list with ubuntu 12.04 list , because ubuntu 12.10 support is ended , you cant get repo for this ..
you will get ubuntu 12.04 sourcelist from https://help.ubuntu.com/12.04/sample/sources.list
copy the content and replace in /etc/apt/source.list ...
make sure for backup of this file
after that run update .. then try to install..this is must step
If it fails .. then simply install 32 bit java as i think this will be supportable for adt
sudo apt-get install openjdk-7-jdk:i386
thanks

Cannot run program " xx/sdk//tools/emulator": java.io.IOException: error=2, No such file or directory

I have installed android SDK and android eclipse plugin successfully on Ubuntu 12.10.
I created the AVD in eclipse, and now it's not running. This is the output error I receive when I run the AVD:it tips:
Starting emulator for AVD 'avd'
Failed to start emulator: Cannot run program "/home/sancai/android/adt-bundle-linux-x86_64-20130522/sdk//tools/emulator": java.io.IOException: error=2, No such file or directory
I find information via google, everyone says this is because my system version is 64, while the adt only support 32, to install: sudo apt-get install ia32-libs, when I installed the 32-bit library, other problems arise such as the library file association to other libraries, but has no other library files are fully,it tips:
sancai#ubuntu:~$ sudo apt-get install ia32-libs
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:
ia32-libs : Depends: ia32-libs-multiarch but it is not installable
E: Unable to correct problems, you have held broken packages.
sancai#ubuntu:~$ sudo apt-get install ia32-libs-multiarch
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package ia32-libs-multiarch is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'ia32-libs-multiarch' has no installation candidate
This should help:
Go to xx/sdk/tools and run:
mv emulator emulator.bak
ln -s emulator64-arm emulator
No need to install any ia32 libs.
This is the answer http://astroelec.blogspot.com/
(using Debian)
Installing ia32-libs will no longer work as debian has moved to multiarch support.
Solution. Use Multiarch
Multiarch support makes installing libraries from the i386 distribution easy...
sudo dpkg --add-architecture i386
sudo aptitude update
sudo aptitude install libstdc++6:i386 libgcc1:i386 zlib1g:i386 libncurses5:i386
Now launch eclipse, and everything should now work just fine.
In my configuration, I have set up the virtual devices to use Intel Atom system image. Lawrence Angrave from the University Illinois said in his Coursera androidapps101 course that it will run faster than the ARM image. So this works for me:
mv emulator emulator_bak
ln -s emulator64-x86 emulator
You do not need install packages any more!
In directory tools, there are many types of emulator, while my computer works with emulator64-arm! My system is Linux Mint 16 amd64! Good luck!
./emulator64-arm #yxphone -sdcard yxsd -scale 0.8
it's easy,this is my solutions.
copy and paste, this lines in your terminal.
apt-get install libncurses5:i386 \
libstdc++6:i386 \
zlib1g:i386
good luck!!
This might help
sudo aptitude install ia32-libs lib32ncurses5 lib32stdc++6

sdk manager failed to create sdcard in the avd folder AND unable to find userdata.img

I'm at my wits end now. I've been getting either one of these errors trying to set up an android emulator on Eclipse. I'm running Ubuntu.
I've read ALL of the answers that I've found for this error but nothing it working for me. Please help!!!
I have uninstalled and installed the android SDK tools several times, including the system image. I've tried to update ia32-libs although I get the following error:
The following packages have unmet dependencies:
ia32-libs : Depends: ia32-libs-multiarch but it is not installable
E: Unable to correct problems, you have held broken packages
After trying
sudo dpkg -r --force-all librtmp0
sudo apt-get install librtmp0
sudo apt-get install ia32-libs
I still get the same error as above.

Categories

Resources