LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 10-15-2014, 02:50 AM   #1
fuser312
Member
 
Registered: Nov 2012
Posts: 32

Rep: Reputation: Disabled
configuring sources.list after installing live kde version


I can view the file and default mirrors i.e. "deb http://security.debian.org/ wheezy/updates main" and "deb-src http://security.debian.org/ wheezy/updates main" are commented out, hence not working.

Hence I am unable to install any software obviously while also unable to edit this file.

As when I try to do
Code:
kate /etc/apt/sources.list
I get the following error message :

Code:
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
No protocol specified
kate: cannot connect to X server :0
Same error with Dolphin command, I am working in terminal as root with "su" command while I am using Debian Wheezy.

Btw, it seems that my IP is blocked at the debian forum (apparently my ISP is blacklisted), any way I could become a member there?
 
Old 10-15-2014, 07:56 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,323
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
Try using nano as an editor in the terminal. If it's not already installed, it's in the repos.
 
Old 10-16-2014, 03:56 AM   #3
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by frankbell View Post
If it's not already installed, it's in the repos.
which op cannot access, because the sources.list is commented out.

but nano should already be installed. it is on +90% of all linux distros.
if not, you can use ed or vi or sed. if you succeed using them, welcome to the advanced level!

but the other error sounds weird; i suspect more problems are coming once you've activated your repos.
 
1 members found this post helpful.
Old 10-16-2014, 04:52 AM   #4
Captain Pinkeye
Member
 
Registered: Oct 2012
Location: The Czech Republic
Posts: 280

Rep: Reputation: 98
you can always "echo $YOUR_REPO >> /etc/apt/sources.list" as root (careful, it's '>>' for append, single '>' will overwrite the file, make a backup if not feeling adventurous).

===========================================
btw those two repos are just for updates; if they are the only ones in your sources.list, you're missing something important there.

===========================================
also, running graphical programs as root is asking for trouble. Don't do that if you can help it (and you can ALWAYS help it).

Last edited by Captain Pinkeye; 10-16-2014 at 05:00 AM. Reason: further discussion
 
Old 10-16-2014, 08:06 PM   #5
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,323
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
Quote:
which op cannot access, because the sources.list is commented out.
Nice catch Ondoho, thank you.

There's always vim, which should be present, but it can be challenging as the interface is hardly transparent. I've just recently started to feel competent--not expert, just competent--with it.

Here's a tutorial.

You can do a lot navigating with the arrow keys using only these commands: x to delete text one character at a time and i to insert text. That should be enough to uncomment lines in sources.list.
 
Old 10-16-2014, 08:42 PM   #6
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Use a live-cd to edit then reboot & run apt-get update
 
  


Reply



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] A sources.list stable for squeeze. My version: 2.6.32-5-686 Foxbat1155 Debian 7 11-27-2011 06:18 PM
changing sources.list to upgrade version imagineaxion Ubuntu 2 12-22-2008 07:46 PM
Need Recommendation for Debian Etch sources.list ( /etc/apt/sources.list ) forgox Debian 6 05-05-2007 01:57 PM
KDE 3.5 - add what to sources.list? PlainDave Debian 7 01-12-2007 04:09 AM
I need help configuring my apt-get sources.list file... Mr.Radar Debian 4 06-01-2004 09:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

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

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