LinuxQuestions.org
Help answer threads with 0 replies.
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 08-10-2007, 04:54 AM   #1
Flab0y352
Member
 
Registered: Aug 2007
Location: Sunshine State
Distribution: Debian Testing
Posts: 72

Rep: Reputation: 15
install software in debian


it seem i cant install any software in debian? do i have to log in as root or can i just sudo apt-get logged in as a user?

and one more thing i installed using the minaiul cd and it said i could dl the secerity updates or sytem updates and someone point me in the right direction? HELP


sorry im a n00b at linux
 
Old 08-10-2007, 05:23 AM   #2
Okie
Senior Member
 
Registered: Mar 2002
Location: Oklahoma
Posts: 1,154

Rep: Reputation: 187Reputation: 187
use Synaptic to install packages in Debian, sudo may or may not work the way it works in ubuntu, in the traditional way Linux has root and users set up is there is a clearly defined difference in the root account and user accounts, and to do any changes system wide you will need root access so a root password is not the same as that first user account like ubuntu has...
 
Old 08-10-2007, 07:31 AM   #3
redgoblin
Member
 
Registered: Jun 2005
Location: UK
Distribution: Debian
Posts: 189

Rep: Reputation: 41
Welcome and don’t worry. We all have to start somewhere.

Normally in Debian you need to be root to install something. Open a console and type su and then the root password. You can then use

Code:
apt-get install <packagename>
or alternatively you can use

Code:
aptitude
You may find aptitude easier if you’re just starting out.

You can take the approach of using sudo. However you’ll need to install sudo first (the irony) and then set it up to allow a user to run apt-get. This is how it tends to work in Ubuntu. The only difference is that Ubuntu has this set up out of the box and Debian doesn’t. Personally, I prefer to do installs as root only.

For security updates you need to make sure that the file /etc/apt/sources.list contains reference to security updates.

As a normal user type

Code:
cat /etc/apt/sources/list
The output should contain something like the following;

Code:
deb http://security.debian.org/ etch/updates main contrib
deb-src http://security.debian.org/ etch/updates main contrib
In your case it may say stable rather than etch. If there’s no mention of security then use su to change to root and edit the file to include these lines. From now on whenever you update you’ll get the security updates as well.

Hope that helps
 
Old 08-10-2007, 09:34 AM   #4
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
For someone as new as you are, I would recommend using Synaptic.
 
Old 08-10-2007, 09:55 AM   #5
pusrob
Member
 
Registered: Jan 2006
Distribution: Gentoo
Posts: 507

Rep: Reputation: 36
Quote:
Originally Posted by AlucardZero
For someone as new as you are, I would recommend using Synaptic.
I would suggest that too (Synaptic). I think you will find aptitude too difficult on the first look. Synaptic is easier to handle.
 
Old 08-10-2007, 08:40 PM   #6
Flab0y352
Member
 
Registered: Aug 2007
Location: Sunshine State
Distribution: Debian Testing
Posts: 72

Original Poster
Rep: Reputation: 15
im not competely a n00b ive used slackware for about 6 months so i know little.....i like using the apt-get to install BUT im still unclear on how to update my debian and do secerity updates

i did what someone said and there was no file named that
 
Old 08-10-2007, 09:20 PM   #7
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 62
Synaptic is for babies and Ubuntu users. Do it right ... use aptitude, but use it from the command line rather than the ncurses interface. First issue is your /etc/apt/sources.list file. It should look something like this.
Code:
debian64:~# cat /etc/apt/sources.list
# 
# deb cdrom:[Debian GNU/Linux 4.0 r0 _Etch_ - Official amd64 NETINST Binary-1 20070407-11:25]/ etch contrib main

deb http://ftp.us.debian.org/debian/ stable main contrib non-free
deb-src http://ftp.us.debian.org/debian/ stable main

deb http://www.debian-multimedia.org stable main

deb http://security.debian.org/ stable/updates main contrib
deb-src http://security.debian.org/ stable/updates main contrib
That assumes you are using Etch. Once that's verified:
# aptitude keep-all
# aptitude update
... and you should be set.

If there is anything you don't understand about that, you need to get a little better general grasp of just how Debian works. There are a ton of introductory essays out there. Here is mine.

Last edited by rickh; 08-10-2007 at 09:30 PM.
 
Old 08-10-2007, 09:32 PM   #8
Flab0y352
Member
 
Registered: Aug 2007
Location: Sunshine State
Distribution: Debian Testing
Posts: 72

Original Poster
Rep: Reputation: 15
this is what my sources list looks like


#
# deb cdrom:[Debian GNU/Linux 4.0 r0 _Etch_ - Official i386 NETINST Binary-1 20070407-11:29]/ etch contrib main

deb cdrom:[Debian GNU/Linux 4.0 r0 _Etch_ - Official i386 NETINST Binary-1 20070407-11:29]/ etch contrib main

deb http://ftp.debian.org/debian/ etch main
deb-src http://ftp.debian.org/debian/ etch main

# Line commented out by installer because it failed to verify:
#deb http://security.debian.org/ etch/updates main contrib
# Line commented out by installer because it failed to verify:
#deb-src http://security.debian.org/ etch/updates main contrib


???
 
Old 08-10-2007, 09:34 PM   #9
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 62
Make it look like the one I gave you. If you are not in the US, change the country code in the URLs
 
Old 08-11-2007, 07:56 AM   #10
pusrob
Member
 
Registered: Jan 2006
Distribution: Gentoo
Posts: 507

Rep: Reputation: 36
Quote:
Originally Posted by rickh
Synaptic is for babies and Ubuntu users. Do it right ... use aptitude, but use it from the command line rather than the ncurses interface.
Sorry if we don't wanna start a console or switch to command line every time we need to upgrade packages...
 
Old 08-11-2007, 08:35 AM   #11
Tons of Fun
Member
 
Registered: Dec 2004
Location: Orlando, Florida
Distribution: Debian 10 | Kali Linux | Ubuntu 20.04 LTS
Posts: 382

Rep: Reputation: 37
Put a # in front of the second cdrom statement (to match the first one) and see what happens.

 
  


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] Can I install Debian software on Ubuntu 6.06? DragonSlayer48DX Ubuntu 4 12-11-2006 02:20 AM
security-software to debian ? terfy Debian 3 01-13-2005 05:35 PM
Debian and software RAID Lleb_KCir Linux - General 2 10-14-2004 04:15 AM
need cd-writer software for debian marta Linux - Software 8 02-09-2004 07:04 AM

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

All times are GMT -5. The time now is 02:16 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