Welcome to the Android Central Forums Create Your Account or Ask a Question Answers in 5 minutes - no registration required!
Results 1 to 12 of 12
Like Tree2Likes
  • 1 Post By PatrickAkridge
  • 1 Post By drewwalton19216801
  1. Thread Author  Thread Author    #1  
    PatrickAkridge's Avatar
    "The Button Pusher"

    Posts
    589 Posts
    Global Posts
    592 Global Posts
    ROM
    Cold as Ice - CM9 kraven

    Unhappy [Q][ADB][Ubuntu 12.04][Error] ADB ERROR in Ubuntu 12.04

    Okay.....

    So I setup the Android SDK, Java (OpenJDK) JDE 6, Java Runtime 6 and 7.

    I'll even give screenshots.. I know this is probably completely irrelevant to my problem, but the screenshots are depictions on what is currently installed on my Ubuntu 12.04 LTS system..

    This won't matter either.. but Specs: Intel Core i3 with 4GB RAM... Ubuntu 12.04 LTS 64bit... It should work just fine on 64bit, right? I mean.. the API Installer installed APIs except for the fact that it tried to kill ADB when ADB wasn't running...

    OpenJDK JDE 6 is Installed...



    Platform-Tools (including ADB) Installed..



    Google Android 2.3.3 API and Examples Installed..



    And Finally... Google Android 2.1 API and Examples Installed..



    ...............

    So.. my SDK folder (for quick access) is in Ubuntu as the path...
    Code:
    /home/patrickakridge/SDK..
    You can access ADB and Fast-boot using
    Code:
    /home/patrickakridge/SDK/platform-tools ./adb or ./fastboot
    respectively. That is how you would access one of the two..

    At an attempt to access currently installed and (should be) working ADB...

    Alright.. here are my commands in order...

    Code:
    "sudo su"
    "friedchicken" (because sudo asked for my password.. no prob, Bob..)
    "cd /home/patrickakridge/SDK/platform-tools"
    ./adb devices
    and I get this lovely error..
    Code:
    ./adb: error while loading shared libraries: libncurses.so.5:  cannot open shared object file: No such file or directory
    I have also encrypted my home folder when I installed Ubuntu.. but now that I think about it.. it shouldn't be a problem at all (and if it is.. I try to bypass using Sudo SU.. which puts you in a Root Shell)

    Here is a Screenshot of the Problem Error in Question:

    NOTE: It always says when I access SUDO SU... for anything.. even if I don't even change directory to the SDK folder..

    Code:
    bash: home/patrickakridge/SDK: No such file or directory
    but a quick look at this proves that error wrong..



    Anyways.. here is the other error... and a screenshot of my commands in order and the annoying error..




    ........

    Why is it doing this? Do I need to try reinstalling Platform-Tools (ADB and Fastboot)? I know the file is just simply not there, but why isn't it there? Last time I installed the SDK on Wubi, it worked fine...

    It might be that I installed updates and the computer needs to be restarted (because ADB can't access the file in question)... I will try that in a minute after I get done posting this thread...

    ........

    Anyone else experiencing this?

    I need HELP!
    Please click the like and thanks buttons if/when I help you out... Also, If you like my work, please consider donating. I greatly appreciate it! Donations are via PayPal, and you may use your debit/credit cards, as well as Bank accounts to help me out with the funds of continuing development of the LG Optimus S.

  2. Thread Author  Thread Author    #2  
    PatrickAkridge's Avatar
    "The Button Pusher"

    Posts
    589 Posts
    Global Posts
    592 Global Posts
    ROM
    Cold as Ice - CM9 kraven

    Default Re: [Q][ADB][Ubuntu 12.04][Error] ADB ERROR in Ubuntu 12.04

    Okay.. yeah.. I rebooted my laptop after installing two rounds of updates, re-logged in, fired up Terminal, aquired root from sudo su, cd'd to the SDK directory and....

    Noooope! Still dead... I need help.. Why does Ubuntu hate me?
    Please click the like and thanks buttons if/when I help you out... Also, If you like my work, please consider donating. I greatly appreciate it! Donations are via PayPal, and you may use your debit/credit cards, as well as Bank accounts to help me out with the funds of continuing development of the LG Optimus S.

  3. #3  
    basketthis's Avatar

    Posts
    1,475 Posts
    Global Posts
    1,480 Global Posts
    ROM
    AOSP!!!

    Default

    Quote Originally Posted by PatrickAkridge View Post
    Okay.....

    So I setup the Android SDK, Java (OpenJDK) JDE 6, Java Runtime 6 and 7.

    I'll even give screenshots.. I know this is probably completely irrelevant to my problem, but the screenshots are depictions on what is currently installed on my Ubuntu 12.04 LTS system..

    This won't matter either.. but Specs: Intel Core i3 with 4GB RAM... Ubuntu 12.04 LTS 64bit... It should work just fine on 64bit, right? I mean.. the API Installer installed APIs except for the fact that it tried to kill ADB when ADB wasn't running...

    OpenJDK JDE 6 is Installed...

    Click to view quoted image


    Platform-Tools (including ADB) Installed..

    Click to view quoted image


    Google Android 2.3.3 API and Examples Installed..

    Click to view quoted image


    And Finally... Google Android 2.1 API and Examples Installed..

    Click to view quoted image


    ...............

    So.. my SDK folder (for quick access) is in Ubuntu as the path...
    Code:
    /home/patrickakridge/SDK..
    You can access ADB and Fast-boot using
    Code:
    /home/patrickakridge/SDK/platform-tools ./adb or ./fastboot
    respectively. That is how you would access one of the two..

    At an attempt to access currently installed and (should be) working ADB...

    Alright.. here are my commands in order...

    Code:
    "sudo su"
    "friedchicken" (because sudo asked for my password.. no prob, Bob..)
    "cd /home/patrickakridge/SDK/platform-tools"
    ./adb devices
    and I get this lovely error..
    Code:
    ./adb: error while loading shared libraries: libncurses.so.5:  cannot open shared object file: No such file or directory
    I have also encrypted my home folder when I installed Ubuntu.. but now that I think about it.. it shouldn't be a problem at all (and if it is.. I try to bypass using Sudo SU.. which puts you in a Root Shell)

    Here is a Screenshot of the Problem Error in Question:

    NOTE: It always says when I access SUDO SU... for anything.. even if I don't even change directory to the SDK folder..

    Code:
    bash: home/patrickakridge/SDK: No such file or directory
    but a quick look at this proves that error wrong..

    Click to view quoted image


    Anyways.. here is the other error... and a screenshot of my commands in order and the annoying error..


    Click to view quoted image


    ........

    Why is it doing this? Do I need to try reinstalling Platform-Tools (ADB and Fastboot)? I know the file is just simply not there, but why isn't it there? Last time I installed the SDK on Wubi, it worked fine...

    It might be that I installed updates and the computer needs to be restarted (because ADB can't access the file in question)... I will try that in a minute after I get done posting this thread...

    ........

    Anyone else experiencing this?

    I need HELP!

    Quote Originally Posted by PatrickAkridge View Post
    Okay.. yeah.. I rebooted my laptop after installing two rounds of updates, re-logged in, fired up Terminal, aquired root from sudo su, cd'd to the SDK directory and....

    Noooope! Still dead... I need help.. Why does Ubuntu hate me?
    Save all your files that you want to keep to an external device. Download Linux Mint and do the same procedure. I've never had issues with mint, where have had issues with ubuntu under the same circumstances. Let us know how it goes!


    Sent from my SPH-D710 using Android Central Forums
  4. #4  
    epidenimus's Avatar
    Racer of Elevators

    Posts
    1,138 Posts
    Global Posts
    1,139 Global Posts
    ROM
    Paranoid Android / CM7

    Default Re: [Q][ADB][Ubuntu 12.04][Error] ADB ERROR in Ubuntu 12.04

    Since it seems to be failing calling a library, my first question would be: Do you have sys-libs/ncurses or libncurses (not sure on Ubuntu naming structure these days) installed?

    Also, you shouldn't need to be root on your Ubuntu box to get ADB to work...
    If you are inclined to spend a lot of money and want a pretty trophy with which to pass the next few years of your life that talks to you in a condescending voice, can't navigate to save its life, expects full control over all you do, demands $13 for a $3 purchase, allegedly has a single recessed button, needs an expensive computer and a credit card to do anything, hates your music and has purses designed just for it...

    Get married to someone you hate... or get an iPhone.
    -------------------------------------------------------------------------------------
    New to LG's premium Android phone? Check out the Optimus S Welcome Guide.
    Used ROM Mangler on your Optimus S and having problems? Try this.
    Thanked by:
  5. #5  
    the_maplebar's Avatar

    Posts
    171 Posts
    ROM
    Stock Rooted, CM7.2

    Default Re: [Q][ADB][Ubuntu 12.04][Error] ADB ERROR in Ubuntu 12.04

    Quote Originally Posted by epidenimus View Post
    Since it seems to be failing calling a library, my first question would be: Do you have sys-libs/ncurses or libncurses (not sure on Ubuntu naming structure these days) installed?

    Also, you shouldn't need to be root on your Ubuntu box to get ADB to work...
    I second that suggestion to check for libncurses. I'm still on Ubuntu 10.04 so the names may be slightly different if there is a new version but I have libncurses5 and lib32ncurses5 installed.

    You do need to be root (or sudo) the first time you run adb (each boot) in order to get the daemon running. After the adb daemon is running you use all of the adb commands without being root.
    Thanked by 2:
  6. Thread Author  Thread Author    #6  
    PatrickAkridge's Avatar
    "The Button Pusher"

    Posts
    589 Posts
    Global Posts
    592 Global Posts
    ROM
    Cold as Ice - CM9 kraven

    Cool [SOLVED][Q][ADB][Ubuntu 12.04][Error] ADB ERROR in Ubuntu 12.04

    Quote Originally Posted by epidenimus View Post
    Since it seems to be failing calling a library, my first question would be: Do you have sys-libs/ncurses or libncurses (not sure on Ubuntu naming structure these days) installed?

    Also, you shouldn't need to be root on your Ubuntu box to get ADB to work...

    See.. I had no idea what you were talking about.. I kept thinking... did I have what installed??

    I don't know what I had installed, but I fired up Package Manager and I installed libncurses5 and lib32ncurses5... I have no idea what these are, but I installed them and ADB is now working...

    With the help of the below quote, I installed what he has Installed (even though I still have no idea of what the two packages are) and ADB now works... at least the daemon starts successfully..

    Thanks for giving me the power of ADB on Linux!

    Quote Originally Posted by the_maplebar View Post
    I second that suggestion to check for libncurses. I'm still on Ubuntu 10.04 so the names may be slightly different if there is a new version but I have libncurses5 and lib32ncurses5 installed.

    You do need to be root (or sudo) the first time you run adb (each boot) in order to get the daemon running. After the adb daemon is running you use all of the adb commands without being root.
    Please click the like and thanks buttons if/when I help you out... Also, If you like my work, please consider donating. I greatly appreciate it! Donations are via PayPal, and you may use your debit/credit cards, as well as Bank accounts to help me out with the funds of continuing development of the LG Optimus S.

    epidenimus likes this.
  7. #7  
    drewwalton19216801's Avatar

    Posts
    2,538 Posts
    Global Posts
    2,539 Global Posts
    ROM
    HydroROM

    Default

    Quote Originally Posted by epidenimus View Post
    Since it seems to be failing calling a library, my first question would be: Do you have sys-libs/ncurses or libncurses (not sure on Ubuntu naming structure these days) installed?

    Also, you shouldn't need to be root on your Ubuntu box to get ADB to work...
    Sys-libs/ncurses eh? You sound like a Gentoo guy, yes?
    PatrickAkridge likes this.
  8. #8  
    Buddlespit's Avatar
    Wannabe kewl

    Posts
    674 Posts
    Global Posts
    675 Global Posts
    ROM
    Wicked Sensations TW-JB

    Default Re: [Q][ADB][Ubuntu 12.04][Error] ADB ERROR in Ubuntu 12.04

    I was gonna say BSD, but Gentoo works too
    "I drank what!?!?!" ~Socrates
    "Man is the lowest-cost, 150-pound, nonlinear, all-purpose computer system which can be mass-produced by unskilled labor." ~NASA, 1965
    New users, click here!!
    Sprint Sammy GS3 | MB1 | Wicked Sensations JB v2.1 | TWRP 2.4.3.0
  9. #9  
    epidenimus's Avatar
    Racer of Elevators

    Posts
    1,138 Posts
    Global Posts
    1,139 Global Posts
    ROM
    Paranoid Android / CM7

    Default Re: [Q][ADB][Ubuntu 12.04][Error] ADB ERROR in Ubuntu 12.04

    Quote Originally Posted by drewwalton19216801 View Post
    Sys-libs/ncurses eh? You sound like a Gentoo guy, yes?
    Lol. I run Sabayon on my two main boxes, so sorta. I don't have the patience for source-based, compile everything everytime distros on the desktop.
    If you are inclined to spend a lot of money and want a pretty trophy with which to pass the next few years of your life that talks to you in a condescending voice, can't navigate to save its life, expects full control over all you do, demands $13 for a $3 purchase, allegedly has a single recessed button, needs an expensive computer and a credit card to do anything, hates your music and has purses designed just for it...

    Get married to someone you hate... or get an iPhone.
    -------------------------------------------------------------------------------------
    New to LG's premium Android phone? Check out the Optimus S Welcome Guide.
    Used ROM Mangler on your Optimus S and having problems? Try this.
  10. Thread Author  Thread Author    #10  
    PatrickAkridge's Avatar
    "The Button Pusher"

    Posts
    589 Posts
    Global Posts
    592 Global Posts
    ROM
    Cold as Ice - CM9 kraven

    Default Re: [Q][ADB][Ubuntu 12.04][Error] ADB ERROR in Ubuntu 12.04

    For the curious of the curiousest..

    The initial bash error of the home/patrickakridge/SDK is not a file or directory was an error in the EXPORT_PATH line (the LAST) line or whatever (couldn't remember the starting point of the line), but anyways.. the file path did NOT have a slash "/" before "home".. "home/patrickakridge/SDK" as the path was giving it the error (I do not have a disc or hard drive named "HOME" .. I do not know how it got this way, but I fixed the path to "/home/patrickakridge/SDK" and the error went away...

    The error was in the Export_Path (again, I couldn't remember the first part of the line) (was the last line) line in the .bashrc file located at
    Code:
    ~/.bashrc
    To access the .bashrc file in my case, you use this command...

    Code:
    nano ~/.bashrc
    OR

    Code:
    gedit ~/.bashrc
    Thanks guys..

    Please click the like and thanks buttons if/when I help you out... Also, If you like my work, please consider donating. I greatly appreciate it! Donations are via PayPal, and you may use your debit/credit cards, as well as Bank accounts to help me out with the funds of continuing development of the LG Optimus S.

    Thanked by:
  11. #11  
    epidenimus's Avatar
    Racer of Elevators

    Posts
    1,138 Posts
    Global Posts
    1,139 Global Posts
    ROM
    Paranoid Android / CM7

    Default Re: [Q][ADB][Ubuntu 12.04][Error] ADB ERROR in Ubuntu 12.04

    For the Ubuntu folks out there...

    Aptitude (Undercarriage of Synaptic and Ubuntu Software Center) is a great package manager that does a fantastic job of dependency management. However, because of the way the Android SDK is installed (can be done through the aforementioned apps or called directly from a folder in any /home subdirectory), it may miss some bits that you need, such as ncurses libraries.

    Here is a very basic (3 words, lol) description of ncurses:
    console display library

    The license is MIT Standard and more info can be found here.
    If you are inclined to spend a lot of money and want a pretty trophy with which to pass the next few years of your life that talks to you in a condescending voice, can't navigate to save its life, expects full control over all you do, demands $13 for a $3 purchase, allegedly has a single recessed button, needs an expensive computer and a credit card to do anything, hates your music and has purses designed just for it...

    Get married to someone you hate... or get an iPhone.
    -------------------------------------------------------------------------------------
    New to LG's premium Android phone? Check out the Optimus S Welcome Guide.
    Used ROM Mangler on your Optimus S and having problems? Try this.
    Thanked by:
  12. Thread Author  Thread Author    #12  
    PatrickAkridge's Avatar
    "The Button Pusher"

    Posts
    589 Posts
    Global Posts
    592 Global Posts
    ROM
    Cold as Ice - CM9 kraven

    Default Re: [Q][ADB][Ubuntu 12.04][Error] ADB ERROR in Ubuntu 12.04

    I love aptitude..

    I also prefer Nano over gedit. Nano writes (in my opinion) quicker...
    Please click the like and thanks buttons if/when I help you out... Also, If you like my work, please consider donating. I greatly appreciate it! Donations are via PayPal, and you may use your debit/credit cards, as well as Bank accounts to help me out with the funds of continuing development of the LG Optimus S.

Tags for this Thread

Posting Permissions