LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 10-22-2013, 02:32 PM   #1
commandersrc555
LQ Newbie
 
Registered: Oct 2013
Location: Jacinto City,Texas
Distribution: Ubuntu,Debian,backtrack 5r3,kali-linux
Posts: 6

Rep: Reputation: Disabled
having problems with the apt-get command


The Debian command line apt-get is not working all of the packages are there but I can not install nothing I get unable to find package for the app, software or programm that I want to install.
 
Old 10-22-2013, 02:44 PM   #2
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,882
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
What exactly did you type and what exactly was reported? Post that information in a reply, suggest you use code blocks. Use advanced mode if you can't figure out how to add code blocks, the icon with # on it adds them for you. Place your pasted command shell text copy in between the two code blocks.

Note that you'll need an attachment to the internet for this to work.

Typically start with:

Code:
sudo apt-get upgrade
To update your repository, especially if this hasn't been done in a while, or ever.

Did you type something like:

Code:
sudo apt-get install vlc
For instance to install vlc?
 
Old 10-22-2013, 03:11 PM   #3
commandersrc555
LQ Newbie
 
Registered: Oct 2013
Location: Jacinto City,Texas
Distribution: Ubuntu,Debian,backtrack 5r3,kali-linux
Posts: 6

Original Poster
Rep: Reputation: Disabled
having problems with the apt-get command

this is what i am getting with the commandand iam online.This is the same thing I get with Kali-linux.


root@debian:/home/stevencobb# sudo apt-get install vlc
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package vlc

Last edited by commandersrc555; 10-22-2013 at 03:24 PM. Reason: this is the same problem with one of my other Distributions
 
Old 10-22-2013, 03:18 PM   #4
snowday
Senior Member
 
Registered: Feb 2009
Posts: 4,667

Rep: Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411
You must do this first:

Code:
sudo apt-get update
Then you can (hopefully):

Code:
sudo apt-get install vlc
If that doesn't work, then please post the output of the 'sudo apt-get update' command.
 
Old 10-22-2013, 03:23 PM   #5
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian sid
Posts: 2,683

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
you don't mention your debian version


but read this anyway


https://www.videolan.org/vlc/download-debian.html
 
Old 10-23-2013, 08:16 AM   #6
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,882
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
Snowpine is correct, I should have written "update" versus what I wrote.

The OP is not trying to specifically install VLC, that was my example. They're having troubles with aptitude, and as pointed out, they should try the two recommended commands and report the results via capturing the output and inserting it within code tags in a reply.
 
Old 10-23-2013, 10:52 AM   #7
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian sid
Posts: 2,683

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
Quote:
Originally Posted by rtmistler View Post
Snowpine is correct, I should have written "update" versus what I wrote.

The OP is not trying to specifically install VLC, that was my example. They're having troubles with aptitude, and as pointed out, they should try the two recommended commands and report the results via capturing the output and inserting it within code tags in a reply.


oops . post 3 confused me

well, in that case

commandersrc555, what are you trying to install?
 
Old 10-23-2013, 05:59 PM   #8
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,979

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
Use -clean option maybe to start?? Does that sort of clean out apt?
 
Old 10-23-2013, 07:03 PM   #9
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
Quote:
Originally Posted by jefro View Post
Use -clean option maybe to start?? Does that sort of clean out apt?
I think that that just cleans the package cache.

Code:
dpkg --configure -a

apt-get --fix-broken
would probably work better.
 
Old 10-23-2013, 07:30 PM   #10
Randicus Draco Albus
Senior Member
 
Registered: May 2011
Location: Hiding somewhere on planet Earth.
Distribution: No distribution. OpenBSD operating system
Posts: 1,711
Blog Entries: 8

Rep: Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635
Quote:
Originally Posted by commandersrc555 View Post
root@debian:/home/stevencobb# sudo apt-get install vlc
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package vlc
It might be a good idea to post your sources.list. If apt cannot locate a basic package like VLC, then it is not connecting to the repository. (Messed up sources.list.)

Another idea, but less likely, trying to use sudo without enabling it might also generate that error message? I do not know, because I have never used sudo with Debian.
 
Old 10-23-2013, 07:35 PM   #11
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
Quote:
Originally Posted by Randicus Draco Albus View Post
Another idea, but less likely, trying to use sudo without enabling it might also generate that error message? I do not know, because I have never used sudo with Debian.
Unnecessarily using sudo in a root shell will not cause any problems whatsoever.
 
  


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] problems with apt-cdrom add command mark_alfred Debian 5 03-10-2011 07:22 AM
dpkg error during any apt command vockleya Linux - Software 2 08-03-2009 09:49 AM
Can I upgrade to 8.04 with an apt-get command? KenJackson Ubuntu 2 04-24-2008 11:53 PM
Sudo Apt-get command use. Mr.Carioca Linux - Distributions 1 02-09-2008 07:05 PM
apt-get query command? bruno buys Debian 1 07-14-2004 08:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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