64-bit ubuntu14.04 after configuring the ADB prompt does not have that file or directory

Source: Internet
Author: User

1. After configuring the ADB environment variable, enter ADB in the terminal:

[Email protected]:~$ adb

/HOME/AMEYUME/ADT-BUNDLE-LINUX-X86_64-20140702/SDK/PLATFORM-TOOLS/ADB: No file or directory

Cause: Because it is a 64-bit Linux system, and the Android SDK is only 32-bit, you need to install some support packages to use. Installation:

[Email protected]:~$ sudo apt-get install ia32-libs

[sudo] password for ameyume:
Reading Package List ... Complete
Analyzing Dependency tree for Package
Reading status information ... Complete
There is no package ia32-libs available now, but it is referenced by other packages.
This may mean that the missing package may have been discarded,
Or can only be found in other publishing sources
However, the following packages replace it:
LIB32Z1 lib32ncurses5 lib32bz2-1.0

E: Package Ia32-libs not available for installation candidate

2. Need to install lib32bz2-1.0
[Email protected]:~$ sudo apt-get install lib32bz2-1.0
Reading Package List ... Complete
Analyzing Dependency tree for Package
Reading status information ... Complete
The following additional packages will be installed:
Libc6-i386
The following "new" packages will be installed:
lib32bz2-1.0 libc6-i386
0 packages were upgraded, 2 new packages were installed, 0 packages were uninstalled, 7 packages were not upgraded.
You need to download the 2,239 KB package.
9,970 KB of extra space is consumed after decompression.
Do you want to continue? [y/n] Y
Get: 1 http://cn.archive.ubuntu.com/ubuntu/trusty-updates/main libc6-i386 amd64 2.19-0ubuntu6.6 [2,206 KB]
Get: 2 http://cn.archive.ubuntu.com/ubuntu/trusty/main lib32bz2-1.0 amd64 1.0.6-5 [33.2 KB]
Download 2,239 KB, time 8 seconds (249 kb/s)
Selecting Libc6-i386 package is not selected.
(Reading Database ... The system currently has a total of 230,803 files and directories installed. )
Preparing for unpacking .../libc6-i386_2.19-0ubuntu6.6_amd64.deb ...
Unpacking libc6-i386 (2.19-0ubuntu6.6) ...
Setting libc6-i386 (2.19-0ubuntu6.6) ...
Processing triggers for Libc-bin (2.19-0ubuntu6.6) ...
Selecting lib32bz2-1.0 package is not selected.
(Reading Database ... The system currently has a total of 231,110 files and directories installed. )
Preparing for unpacking .../lib32bz2-1.0_1.0.6-5_amd64.deb ...
Unpacking lib32bz2-1.0 (1.0.6-5) ...
Setting lib32bz2-1.0 (1.0.6-5) ...
Processing triggers for Libc-bin (2.19-0ubuntu6.6) ...


3. Re-enter ADB and prompt:

[Email protected]:~$ adb

adb:error while loading shared libraries:libstdc++.so.6:cannot open Shared object file:no such file or directory
[Email protected]:~$
[Email protected]:~$
[Email protected]:~$sudo apt-get install lib32stdc++6
Reading Package List ... Complete
Analyzing Dependency tree for Package
Reading status information ... Complete
The following additional packages will be installed:
Lib32gcc1
The following "new" packages will be installed:
LIB32GCC1 lib32stdc++6
0 packages were upgraded, 2 new packages were installed, 0 packages were uninstalled, 7 packages were not upgraded.
You need to download the 309 KB package.
1,338 KB of extra space is consumed after decompression.
Do you want to continue? [y/n] Y
Get: 1 http://cn.archive.ubuntu.com/ubuntu/trusty-updates/main lib32gcc1 amd64 1:4.9.1-0ubuntu1 [47.6 KB]
Get: 2 http://cn.archive.ubuntu.com/ubuntu/trusty-updates/main lib32stdc++6 amd64 4.8.4-2ubuntu1~14.04 [262 KB]
Download 309 KB, time 2 seconds (111 kb/s)
Selecting LIB32GCC1 package is not selected.
(Reading Database ... The system currently has a total of 231,116 files and directories installed. )
Preparing for unpacking .../lib32gcc1_1%3a4.9.1-0ubuntu1_amd64.deb ...
Unpacking lib32gcc1 (1:4.9.1-0UBUNTU1) ...
Selecting Lib32stdc++6 package is not selected.
Preparing for unpacking .../lib32stdc++6_4.8.4-2ubuntu1~14.04_amd64.deb ...
Unpacking lib32stdc++6 (4.8.4-2ubuntu1~14.04) ...
Setting LIB32GCC1 (1:4.9.1-0UBUNTU1) ...
Setting lib32stdc++6 (4.8.4-2ubuntu1~14.04) ...
Processing triggers for Libc-bin (2.19-0ubuntu6.6) ...


4. At this point, execute the ADB command OK:

[Email protected]:~$ adb

Android Debug Bridge Version 1.0.31

-a-directs adb to listen on all interfaces for a connection
-d-directs command to the only connected USB device
Returns an error if more than one USB device is present.
-e-directs command to the only running emulator.
Returns an error if more than one emulator is running.
-S <specific device>-directs command to the device or emulator with the given
Serial number or qualifier. Overrides android_serial
environment variable.
-P <product Name or path>-simple product name like ' sooner ', or
A relative/absolute path to a product
Out directory like ' Out/target/product/sooner '.
If-p is not specified, the Android_product_out
environment variable is used, which must
is an absolute path.
-h-name of ADB server host (Default:localhost)
-p-port of ADB server (default:5037)
devices [-l]-list all connected devices
('-l ' 'll also list device qualifiers)
Connect Port 5555 is used by default if No. port number is specified.
disconnect [Port 5555 is used by default if No. port number is specified.
Using This command with no additional arguments
Would disconnect from all connected TCP/IP devices.

Device commands:
ADB push [-p] <local> <remote>
-Copy File/dir to device
('-P ' to display the transfer progress)
ADB pull [-p] [-a] <remote> [<local>]
-Copy File/dir from device
('-P ' to display the transfer progress)
('-a ' means copy timestamp and mode)
ADB sync [<directory>]-copy host->device only if changed
(-L means list but don ' t copy)
(see ' adb help all ')

...

5. Next, when the Android project was created, another error occurred:

Error while loading shared Libraries:libz.so.1:cannot open Shared object file:no such file or directory.

[Email protected]:~$ sudo apt-get install lib32z1
Reading Package List ... Complete
Analyzing Dependency tree for Package
Reading status information ... Complete
The following "new" packages will be installed:
Lib32z1
0 packages were upgraded, 1 new packages were installed, 0 packages were uninstalled, 7 packages were not upgraded.
You need to download the 57.5 KB package.
178 KB of extra space is consumed after decompression.
Get: 1 http://cn.archive.ubuntu.com/ubuntu/trusty/main lib32z1 amd64 1:1.2.8.dfsg-1ubuntu1 [57.5 KB]
Download 57.5 KB, time 3 seconds (15.9 kb/s)
Selecting LIB32Z1 package is not selected.
(Reading Database ... The system currently has a total of 231,123 files and directories installed. )
Preparing for unpacking .../lib32z1_1%3a1.2.8.dfsg-1ubuntu1_amd64.deb ...
Unpacking lib32z1 (1:1.2.8.DFSG-1UBUNTU1) ...
Setting LIB32Z1 (1:1.2.8.DFSG-1UBUNTU1) ...

Processing triggers for Libc-bin (2.19-0ubuntu6.6) ...


Reference: ubuntu14.04 (64) Run the report (... adb: error=2, no file or directory)

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

64-bit ubuntu14.04 configuration adb prompts for no file or directory

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.