LinuxQuestions.org
Visit Jeremy's Blog.
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 05-07-2015, 11:16 AM   #1
Garrett85
Member
 
Registered: Jan 2011
Posts: 332

Rep: Reputation: 6
Can't install anything on Debian


I just built my first computer and installed Debian on it for a media server. But when I try to download software on it I get the same set of error every time.

root@media-server:~# apt-get install vim
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package vim is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'vim' has no installation candidate

Also, when I boot it up I get a lot of errors that go something like this
`/sbin/modprob -b pci :########################################## <- bun of numbers with two letter v
timeout killing
 
Old 05-07-2015, 11:36 AM   #2
Head_on_a_Stick
Senior Member
 
Registered: Dec 2014
Location: London, England
Distribution: Debian stable (and OpenBSD-current)
Posts: 1,187

Rep: Reputation: 285Reputation: 285Reputation: 285
Have you updated your APT database?
Code:
# apt-get update
Please post the output of:
Code:
cat /etc/apt/sources.list
apt-cache policy
 
Old 05-08-2015, 10:46 AM   #3
Garrett85
Member
 
Registered: Jan 2011
Posts: 332

Original Poster
Rep: Reputation: 6
Yea, I've already tried apt-get update, nothing good came of that either.

garrett@media-server:~$ cat /etc/apt/sources.list
#

# deb cdrom:[Debian GNU/Linux 7 _Wheezy_ - Official Snapshot amd64 LIVE/INSTALL Binary 20141121-01:28]/ wheezy main

deb cdrom:[Debian GNU/Linux 7 _Wheezy_ - Official Snapshot amd64 LIVE/INSTALL Binary 20141121-01:28]/ wheezy main

deb http://security.debian.org/ wheezy/updates main
deb-src http://security.debian.org/ wheezy/updates main

garrett@media-server:~$ apt-cache policy
Package files:
100 /var/lib/dpkg/status
release a=now
500 http://security.debian.org/ wheezy/updates/main Translation-en
500 http://security.debian.org/ wheezy/updates/main amd64 Packages
release v=7.0,o=Debian,a=oldstable,n=wheezy,l=Debian-Security,c=main
origin security.debian.org
500 cdrom://[Debian GNU/Linux 7 _Wheezy_ - Official Snapshot amd64 LIVE/INSTALL Binary 20141121-01:28]/ wheezy/main amd64 Packages
origin Debian GNU/Linux 7 _Wheezy_ - Official Snapshot amd64 LIVE/INSTALL Binary 20141121-01:28
Pinned packages:
 
Old 05-08-2015, 12:02 PM   #4
m_yates
Senior Member
 
Registered: Aug 2003
Location: Upstate
Distribution: Debian, Mint, Mythbuntu
Posts: 1,249

Rep: Reputation: 101Reputation: 101
Your sources.list file is still set up to use the CD disk for files, and the CD doesn't have many files on it anyway. Edit your source.list file with the following:
Code:
su
nano /etc/apt/sources.list
When nano opens the file, edit it to look like this:
Code:
deb http://ftp.nl.debian.org/debian wheezy main contrib non-free
deb-src http://ftp.nl.debian.org/debian wheezy main contrib non-free

deb http://security.debian.org/ wheezy/updates main contrib non-free
deb-src http://security.debian.org/ wheezy/updates main contrib non-free

# wheezy-updates, previously known as 'volatile'
deb http://ftp.nl.debian.org/debian wheezy-updates main contrib non-free
deb-src http://ftp.nl.debian.org/debian wheezy-updates main contrib non-free
My server is in the Netherlands, so everywhere you see "nl" above, you can replace it with the two letter country code of your own country. You can still use it exactly as above, it just means that apt will fetch the files from the Netherlands. It might be a little faster to fetch them from a server closer to your home. Once you have edited sources.list, save it with ctrl+O and exit with ctrl+X. Next, run:
Quote:
apt-get update
apt-get dist-upgrade
The first command will update your server to see all of the files available. The next command will apply any updates that have been released since the files on your CD rom disk were released.

From there on, you can install anything from the main, contrib, and non-free repositories shown in the sources.list file. If you want a graphical interface to install software, run:
Code:
apt-get install synaptic
Synaptic should then be available on your desktop environment menu somewhere. You can use synaptic to search for software, apply updates, and install new software.
 
1 members found this post helpful.
Old 05-08-2015, 12:04 PM   #5
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,491

Rep: Reputation: Disabled
Looks like you only have your CD & Debian Security enabled in your sources list, try adding an online Debian repository to it.
(Maybe vim is not on the cdrom.)

Edit: I see I was beaten to it.

Last edited by fatmac; 05-08-2015 at 12:06 PM.
 
1 members found this post helpful.
Old 05-13-2015, 04:28 PM   #6
Garrett85
Member
 
Registered: Jan 2011
Posts: 332

Original Poster
Rep: Reputation: 6
I edited the /etc/apt/sources.list file and things seem to be working. Thanks guys.
 
  


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
LXer: How to install a single package from Debian SID or Debian Testing on a stable system LXer Syndicated Linux News 0 11-22-2012 04:42 PM
LXer: How to add Debian Squeeze to your Debian Lenny FAI install server LXer Syndicated Linux News 0 09-08-2011 07:21 PM
LXer: How To Install A (Canon) Printer On Debian And Debian-Like Systems LXer Syndicated Linux News 0 05-20-2011 11:01 AM
how can i install debian 5.06 in my pc i have downloaded debian-update-5.0.6-i386-DVD siddtanu Debian 2 10-21-2010 02:56 PM

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

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