LinuxQuestions.org
Help answer threads with 0 replies.
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, 03: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, 03:44 PM   #2
rtmistler
Moderator
 
Registered: Mar 2011
Location: Sutton, MA. USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu
Posts: 4,458
Blog Entries: 10

Rep: Reputation: 1639Reputation: 1639Reputation: 1639Reputation: 1639Reputation: 1639Reputation: 1639Reputation: 1639Reputation: 1639Reputation: 1639Reputation: 1639Reputation: 1639
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, 04: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 04:24 PM. Reason: this is the same problem with one of my other Distributions
 
Old 10-22-2013, 04:18 PM   #4
snowpine
Senior Member
 
Registered: Feb 2009
Posts: 4,131

Rep: Reputation: 1155Reputation: 1155Reputation: 1155Reputation: 1155Reputation: 1155Reputation: 1155Reputation: 1155Reputation: 1155Reputation: 1155
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, 04:23 PM   #5
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian Jessie / sid
Posts: 1,471

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


but read this anyway


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

Rep: Reputation: 1639Reputation: 1639Reputation: 1639Reputation: 1639Reputation: 1639Reputation: 1639Reputation: 1639Reputation: 1639Reputation: 1639Reputation: 1639Reputation: 1639
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, 11:52 AM   #7
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian Jessie / sid
Posts: 1,471

Rep: Reputation: 444Reputation: 444Reputation: 444Reputation: 444Reputation: 444
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, 06:59 PM   #8
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,658

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

Rep: Reputation: 308Reputation: 308Reputation: 308Reputation: 308
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, 08:30 PM   #10
Randicus Draco Albus
Senior Member
 
Registered: May 2011
Location: Hiding somewhere on planet Earth.
Distribution: OpenBSD
Posts: 1,644
Blog Entries: 8

Rep: Reputation: 577Reputation: 577Reputation: 577Reputation: 577Reputation: 577Reputation: 577
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, 08:35 PM   #11
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 308Reputation: 308Reputation: 308Reputation: 308
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


All times are GMT -5. The time now is 09:34 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration