Copyright © https://mongoose-os.com

Mongoose OS Forum

frame

Error-trying to install mos tool on Ubuntu 16.10

mjhrammjhram Iraq
edited August 2017 in Mongoose OS

Hi,
I am trying to install mos tool on Ubuntu 16.10, but I got error when "sudo apt-get update"(attachment).

Comments

  • After changing the locale, the apt-get update succeedes.
    Now I get E: Unable to locate package mos

    mjhram@mjhram-virtual-machine:~$ sudo add-apt-repository ppa:mongoose-os/mos
    [sudo] password for mjhram: 
     The Mongoose OS command line tool
     More info: https://launchpad.net/~mongoose-os/+archive/ubuntu/mos
    Press [ENTER] to continue or ctrl-c to cancel adding it
    
    gpg: keybox '/tmp/tmphn7vt0ua/pubring.gpg' created
    gpg: /tmp/tmphn7vt0ua/trustdb.gpg: trustdb created
    gpg: key FD31EFE61A213823: public key "Launchpad PPA for Mongoose OS" imported
    gpg: Total number processed: 1
    gpg:               imported: 1
    OK
    mjhram@mjhram-virtual-machine:~$ sudo apt-get update
    Hit:1 http://ppa.launchpad.net/mongoose-os/mos/ubuntu yakkety InRelease
    Hit:2 http://us.archive.ubuntu.com/ubuntu yakkety InRelease
    Hit:3 http://us.archive.ubuntu.com/ubuntu yakkety-updates InRelease
    Hit:4 http://us.archive.ubuntu.com/ubuntu yakkety-backports InRelease
    Hit:5 http://us.archive.ubuntu.com/ubuntu yakkety-security InRelease
    Reading package lists... Done
    mjhram@mjhram-virtual-machine:~$ sudo apt-get install mos
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    E: Unable to locate package mos
    mjhram@mjhram-virtual-machine:~$ 
    
  • The Linux binary is back. Use the MacOS/Linux instructions.
    I just tried it with Ubuntu 16.04 and it works. I hope it works for 16.10 as well.

    Greg

  • Thanks, I already tried it (before doing sudo apt-get update) and it was not working. I will re-try.
    I'm new to linux, and I think the issue of E: Unable to locate package mos can be solved, because everything goes fine except the final step.

    mjhram@mjhram-virtual-machine:~$ sudo apt-get install mos
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    E: Unable to locate package mos
    
  • I already had mos installed with the package, and successfully build firmware.
    Now, when I do sudo apt-get update, I get this:

    W: The repository 'https://launchpad.net/~mongoose-os/+archive/ubuntu/mos xenial Release' does not have a Release file.
    N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
    N: See apt-secure(8) manpage for repository creation and user configuration details.
    E: Failed to fetch https://launchpad.net/~mongoose-os/+archive/ubuntu/mos/dists/xenial/main/binary-amd64/Packages 404 Not Found
    E: Some index files failed to download. They have been ignored, or old ones used instead.

    This looks like a broken package. Not sure what you can do about that.

  • I removed the Ubuntu/Debian package, and then installed using the curl MacOS/Linux instructions.
    The first invocation of mos will do some set-up, including appending the path of mos to the PATH variable in .bashrc.
    That is OK for command line usage in an interactive shell. But it did not work with Eclipse launched from the GUI, I am guessing non-interactive shell which does not see .bashrc?
    I fixed that by appending this to the file .profile in my home directory:

    PATH="$PATH:/home/(your user name goes here)/.mos/bin"
    export PATH

    Now mos works, both command line and from Eclipse IDE, upgraded to version 1.14.

    Greg

    Thanked by 1Sergey
  • I tried to install using curl. It is installed, but mos is not working. I got error in attachment.

  • sudo mos doesn't work because it is a local install in your home directory.

    You're running in a virtual machine? I wonder if the problem is related to that.

  • you're right, I am using VM.
    I tried the command without sudo.also.

  • rojerrojer Dublin, Ireland

    the right way to use mos on ubuntu is to use the official PPA. at the moment we support 16.04 and 17.04; 16.10 is a non-LTS release that is already unsupported by Canonical and PPA does not accept packages for it. i recommend you either upgrade to 17.04 (simpler) or downgrade to 16.04 and use the binary from PPA.

    Thanked by 1mjhram
  • I just tried the Ubuntu package install again; version 1.14 installs and updates without any of the previously reported errors.
    This is on Ubuntu 16.04.
    Ok, back to the package!

    Thank you,
    Greg

  • Thanks Rojer. I will do upgrade to 17.04 and try.

  • Smoothly installed on 16.04.3
    Thanks for the support.

Sign In or Register to comment.