Error Writing /etc/apt/sources.list Permission Denied
Contents |
communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site /etc/apt/sources.list permission denied debian Help Center Detailed answers to any questions you might have
/etc/apt/sources.list Permission Denied Kali Linux
Meta Discuss the workings and policies of this site About Us Learn more about
Bash /etc/apt/sources.list Permission Denied Kali Linux
Stack Overflow the company Business Learn more about hiring developers or posting ads with us Ask Ubuntu Questions Tags Users Badges Unanswered Ask Question
Debian Sources List Permission Denied
_ Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top permission denied: /etc/apt/sources.list /etc/apt/sources.list ubuntu up vote 7 down vote favorite 2 I'm trying to install java jre, i usually do it like this sudo echo 'deb http://www.duinsoft.nl/pkg debs all' >> /etc/apt/sources.list sudo apt-key adv --keyserver keys.gnupg.net --recv-keys 5CB26B26 sudo apt-get update sudo apt-get install update-sun-jre exit but when i do sudo echo 'deb http://www.duinsoft.nl/pkg debs all' >> /etc/apt/sources.list i see permission denied: /etc/apt/sources.list When i do ls -l /etc/apt/sources.list i see -rw-r--r-- 1 root root 3360 Aug 26 01:45 /etc/apt/sources.list When i do sudo mv /etc/apt/sources.list /etc/apt/sources.list.old sudo cat /etc/apt/sources.list.old | sudo tee /etc/apt/sources.list i see #deb cdrom:[Ubuntu 12.04 LTS _Precise Pangolin_ - Release amd64 (20120425)]/ dists/precise/main/binary-i386/ #deb cdrom:[Ubuntu 12.04 LTS _Precise Pangolin_ - Release amd64 (20120425)]/ dists/precise/restricted/binary-i386/ #deb cdrom:[Ubuntu 12.04 LTS _Precise Pangolin_ - Release amd64 (20120425)]/ precise main restricted # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to # newer versions of the distribution. deb http:
communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed answers to any questions unable to locate package you might have Meta Discuss the workings and policies of apt-get dist-upgrade this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers sudo or posting ads with us Ask Ubuntu Questions Tags Users Badges Unanswered Ask Question _ Ask Ubuntu is a question and answer site for Ubuntu users and http://askubuntu.com/questions/185268/permission-denied-etc-apt-sources-list developers. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top Unable to edit /etc/apt/sources.list file up vote 4 down vote favorite 1 When I try to edit sources.list file using the command: http://askubuntu.com/questions/332669/unable-to-edit-etc-apt-sources-list-file $:gksu gedit /etc/apt/sources.list It request for administrative password and when I type the password, It says incorrect and try again.What to do? I am new to Linux or Ubuntu. 13.04 software-sources share|improve this question edited Nov 29 '13 at 12:49 asked Aug 14 '13 at 19:43 rajashekar007 771112 2 Are you using your current password? If so, does your account have administrative privileges? Welcome to AskUbuntu. –Geppettvs D'Constanzo Aug 14 '13 at 19:46 Yes,Iam using my current password and account with administrative privileges. bty using nano editor has resolved my problem. Thank you. –rajashekar007 Aug 14 '13 at 20:30 add a comment| 3 Answers 3 active oldest votes up vote 5 down vote accepted Use the terminal text editor program nano instead of gedit to edit /etc/apt/sources.list. Open the terminal and type: sudo nano /etc/apt/sources.list The instructions for using nano are always displayed at the bottom of the page. Use the keyboard combination Ctrl + O and after
problems trying to get it to work. Firstly, I wasn't able to install https://forums.kali.org/archive/index.php/t-19193.html it using the mirror as I also didn't configure the network as it wasn't able to detect my dchp server. I decided to install it https://github.com/cozy/cozy-docs/issues/146 without that stuff and do it after installation. So after I installed it I decided to populate my source.list repository. I found a link online ( permission denied http://kaligr3y.blogspot.ie/2013/04/how-to-add-full-repository-in-kali-linux.html ) and went with, this was as follows: vi /etc/apt/sources.list deb http://http.kali.org/ /kali main contrib non-free deb http://http.kali.org/ /wheezy main contrib non-free deb http://http.kali.org/kali kali-dev main contrib non-free deb http://http.kali.org/kali kali-dev main/debian-installer deb-src http://http.kali.org/kali kali-dev main contrib non-free deb http://http.kali.org/kali kali main contrib non-free deb http://http.kali.org/kali kali main/debian-installer deb-src http://http.kali.org/kali list permission denied kali main contrib non-free deb http://security.kali.org/kali-security kali/updates main contrib non-free deb-src http://security.kali.org/kali-security kali/updates main contrib non-free esc :wq enter Then I tried to do apt-get update and apt-get upgrade but it failed with a segmentation error. So I tried a few other things, not sure I remember everything, but now I am being denied permission to do a lot of stuff, for example I cannot get into /etc/apt/source.list. The reason I wanted to download these repositories was because I wanted to be able to download gedit and OfficeLibre, and wasn't able to. So I assumed that if I had all the packages I might be able to! I am also trying to start an apache server using the terminal and I script I downloaded into leafpad but it's returning that it unable to determine the servers qualified name. I'm wondering if there's something I need to do as I skipped configurin
Sign in Pricing Blog Support Search GitHub This repository Watch 22 Star 20 Fork 47 cozy/cozy-docs Code Issues 28 Pull requests 0 Projects 0 Pulse Graphs New issue Adding to sources.list.d requires you run as *root* (not just sudo) #146 Closed terrycloth opened this Issue Jun 30, 2015 · 2 comments Projects None yet Labels bug Milestone No milestone Assignees No one assigned 3 participants terrycloth commented Jun 30, 2015 I'm reading the installation instructions for Ubuntu. I'm testing on a Ubuntu 14.04.2 virtual machine (running in GNOME Boxes on my Ubuntu 15.04 64-bit desktop). When I get to this command... sudo echo 'deb https://ubuntu.cozycloud.cc/debian trusty main' \ > /etc/apt/sources.list.d/cozy.list ...when I try this, it says "Permission denied." I'm only able to add the source if I manually run sudo vim and paste the string into the cozy.list file, or if I run the echo command after changing to the root user with sudo su. Does this happen for you too? If this is reproducible, let's correct it. If it only happens for me, though, this permissions issue confuses me. frankrousseau added the bug label Jul 16, 2015 frankrousseau commented Jul 16, 2015 @Kloadut any idea about making this command proper? nicofrand commented Aug 6, 2015 echo 'deb https://ubuntu.cozycloud.cc/debian trusty main' | sudo tee /etc/apt/sources.list.d/cozy.list > /dev/null should work ! frankrousseau pushed a commit that closed this issue Aug 27, 2015 nono