Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-13-2016, 03:37 PM   #1
LQ Newbie
Registered: Mar 2016
Posts: 5

Rep: Reputation: Disabled
How to add an entry to a file?

I am new to linux and while installing Docker I got stuck at step 7.

So I am trying to add deb ubuntu-wily main to the docker.list file I created yet nothing seems to work the way it should.

I tried this:
and this:
and several more yet the closest I get is:

mitja@mitja-N73SV:/etc/apt/sources.list.d$ sudo echo 'deb ubuntu-wily main' >>docker.list
bash: docker.list: Permission denied
Old 03-13-2016, 04:15 PM   #2
Senior Member
Registered: Sep 2013
Distribution: Void Linux / Slackware 14.2
Posts: 4,139

Rep: Reputation: 740Reputation: 740Reputation: 740Reputation: 740Reputation: 740Reputation: 740Reputation: 740
are you trying to add an entry to a file?

Open the file in your favorite editor.

$ sudo geany <or your favorite editor> /etc/apt/sources.list.d/docker.list
If the file doesn’t exist, create it.

Remove any existing entries.

Add an entry for your Ubuntu operating system.
as you see here you have NO editor with root privileges
right here
mitja@mitja-N73SV:/etc/apt/sources.list.d$ sudo echo 'deb ubuntu-wily main' >>docker.list
bash: docker.list: Permission denied

Last edited by BW-userx; 03-13-2016 at 04:18 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] do I need to add entry to logrotate? plisken Slackware 5 03-11-2014 01:56 AM
Add Windows XP entry to GRUB bforbes Linux - Software 16 05-25-2011 11:08 AM
Trying to add "Hello world" system call: missing entry.S file courteous Linux - Kernel 5 01-04-2011 07:13 AM
Add route entry ust Linux - Newbie 5 09-04-2008 09:43 PM
add entry to startup? TomalakBORG SUSE / openSUSE 1 11-22-2005 05:53 PM

All times are GMT -5. The time now is 04:18 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration