Installing a JTAG interface under Ubuntu

I'm about 1/5 in terms of being a Linux guru, trying to install a Segger JTAG interface on an x86 machine running Ubuntu 12.04LTS. The very first step of the 'procedure in README.txt document from the download tarball has stopped me dead, the very first instruction is to enter apt-get -update on the command line. I entered:

sudo apt-get -update , and get the following error:

E: command line option 'p' [from -update] is not known.

Are there more effective instructions anywhere about installing this interface? If it was Win7, the entire operation would proceed seamlessly and trouble-free. Please, no comments on the obvious.... :-/

Is this just my ignorance, or do others have a similar problem with this device?

Reply to
Bruce Varley
Loading thread data ...

Try it without the dash.

sudo apt-get update

Andy

Reply to
Andy Sinclair

Yes. Just for info, there are several general forms that command arguments take. I don't think there are any universal rules, but "-" variants are often used for single letter commands. What happened to you is that apt-get tried to interprete "-update" as a combination of single letter commands, like

apt-get -u -p -d -a -t -e

A bit like you can extract a file with

tar -xzf file.tar.gz

or

tar -x -z -f file.tar.gz

There is evidently no -p option to apt-get so it barfed there.

--

John Devereux
Reply to
John Devereux

OMG, a typo in their instructions. What else might I come across :-(

Thanks.

Reply to
Bruce Varley

Op Fri, 4 Oct 2013 20:35:27 +0800 schreef Bruce Varley:

try 'apt-get --help' or 'man apt-get' or 'info apt-get' These give a list op 'commands' without a dash and 'options' with a dash.

--
Coos 

CHForth, 16 bit DOS applications 
http://home.hccnet.nl/j.j.haak/forth.html
Reply to
Coos Haak

You can also do 'sudo apt-get update' and let it prompt you for a password. That's a good approach if you're paranoid, because it prevents you from typing your password in the clear.

If you feel like it, you can also install the Synaptic package manager from the Ubuntu Software Center, then do this kind of stuff through a gui. It takes more time if you're just blindly following instructions, but if you want to see what it is you're downloading it's easier (via right-clicking and looking at "properties") with Synaptic than it is with apt.

--

Tim Wescott 
Wescott Design Services 
http://www.wescottdesign.com
Reply to
Tim Wescott

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.