LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 01-31-2015, 01:18 PM   #1
what is
LQ Newbie
 
Registered: Jan 2015
Posts: 28

Rep: Reputation: Disabled
I have not /etc/apt/sources.list


I found the root of the problem. I have not /etc/apt/sources.list in virtual Box. please help me until this the problem is resolved.

Thank you for your patience.
 
Old 01-31-2015, 01:27 PM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,130
Blog Entries: 2

Rep: Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825
/etc/apt/sources.list exists only in distributions using the APT package management system, usually Debian (and derivatives) and Ubuntu (and derivatives)
Which distribution do you have installed in your VM?
 
Old 01-31-2015, 01:28 PM   #3
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Which Os, Debian Ubuntu, Mint?
Quote:
cat /etc/os-release
uname -a
 
Old 01-31-2015, 01:43 PM   #4
what is
LQ Newbie
 
Registered: Jan 2015
Posts: 28

Original Poster
Rep: Reputation: Disabled
I have ubuntu server in virtual Box.
 
Old 01-31-2015, 01:50 PM   #5
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Which release of ubuntu 11, 12, 14?
You can generate a sources list here & copy it to sources.list
http://repogen.simplylinux.ch

Last edited by EDDY1; 01-31-2015 at 01:52 PM.
 
Old 01-31-2015, 01:59 PM   #6
what is
LQ Newbie
 
Registered: Jan 2015
Posts: 28

Original Poster
Rep: Reputation: Disabled
I have ubuntu-11.10-server-i386
but in the link I can not find the release of ubuntu 11.(there is not)

Last edited by what is; 01-31-2015 at 02:00 PM.
 
Old 01-31-2015, 02:08 PM   #7
rokytnji
Senior Member
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: AntiX 15 , Slackel 14.1, ChromeOS
Posts: 4,713
Blog Entries: 19

Rep: Reputation: 1970Reputation: 1970Reputation: 1970Reputation: 1970Reputation: 1970Reputation: 1970Reputation: 1970Reputation: 1970Reputation: 1970Reputation: 1970Reputation: 1970
open terminal. Type in

Code:
cd /etc/apt
hit return/enter key. Then type in

Code:
ls
Hit enter/return key

post back what "ls" showed in code tags.
 
Old 01-31-2015, 02:27 PM   #8
what is
LQ Newbie
 
Registered: Jan 2015
Posts: 28

Original Poster
Rep: Reputation: Disabled
I typed
Code:
cd /etc/apt
then I typed:
Code:
ls
The result is as follows:
Code:
apt.conf.d soureces.list sources.list.d trusted.gpg trusted.gpg.d
preferences.d sources.list~ trustdb.gpg trusted.gpg~

Last edited by what is; 01-31-2015 at 02:35 PM.
 
Old 01-31-2015, 02:34 PM   #9
Head_on_a_Stick
Senior Member
 
Registered: Dec 2014
Location: London, England
Distribution: Arch & Debian
Posts: 1,183

Rep: Reputation: 283Reputation: 283Reputation: 283
Copy the backup file:
Code:
cd /etc/apt
sudo cp sources.list~ sources.list
EDIT: Or rename the "soureces.list"

Last edited by Head_on_a_Stick; 01-31-2015 at 02:39 PM. Reason: missed his edit
 
Old 01-31-2015, 02:43 PM   #10
what is
LQ Newbie
 
Registered: Jan 2015
Posts: 28

Original Poster
Rep: Reputation: Disabled
I typed:
Code:
 
cd /etc/apt
sudo cp sources.list~ sources.list
The result:No error

What is the next step?

thanks.
 
Old 01-31-2015, 03:08 PM   #11
Head_on_a_Stick
Senior Member
 
Registered: Dec 2014
Location: London, England
Distribution: Arch & Debian
Posts: 1,183

Rep: Reputation: 283Reputation: 283Reputation: 283
Quote:
Originally Posted by what is View Post
What is the next step?
Code:
sudo apt-get update
This should refresh your package database -- it there are any errors, post them here.
 
Old 01-31-2015, 03:26 PM   #12
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 6,872

Rep: Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249
Ubuntu 11.10 isn't supported any longer. The list of currently supported desktop and server versions at the site below.

https://wiki.ubuntu.com/Releases

Upgrading instructions at the link below.

http://fridge.ubuntu.com/2013/03/29/...on-may-9-2013/
 
1 members found this post helpful.
Old 02-01-2015, 02:44 AM   #13
what is
LQ Newbie
 
Registered: Jan 2015
Posts: 28

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Head_on_a_Stick View Post
Code:
sudo apt-get update
This should refresh your package database -- it there are any errors, post them here.
I typed

Code:
 sudo apt-get update
and the result is:

Code:
 reading  package lists.....Done
 
Old 02-01-2015, 07:30 AM   #14
Head_on_a_Stick
Senior Member
 
Registered: Dec 2014
Location: London, England
Distribution: Arch & Debian
Posts: 1,183

Rep: Reputation: 283Reputation: 283Reputation: 283
@yancek is quite correct -- change to a newer version, you shouldn't be using that one.
 
Old 02-01-2015, 12:34 PM   #15
dolphin_oracle
Member
 
Registered: Dec 2013
Posts: 329

Rep: Reputation: Disabled
Also, apt changed slightly so that multiple source lists are possible, and these lists are stored in /etc/apt/sources.lists.d/
 
  


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
disabling cd sources in apt/sources.list revod_neb Linux - Newbie 4 05-25-2013 01:03 PM
'E:Malformed line 54 in source list /etc/apt/sources.list (dist parse), E:The list of vsssuccess@gmail.com Linux - Desktop 1 11-17-2010 09:17 AM
apt-get; E: Type 'GPG' is not known on line 20 in source list /etc/apt/sources.list tomorrow Linux - Newbie 9 05-21-2009 09:42 AM
Need Recommendation for Debian Etch sources.list ( /etc/apt/sources.list ) forgox Debian 6 05-05-2007 02:57 PM
apt-get update errors since Debian released ( bad /etc/apt/sources.list ?) forgox Debian 10 06-13-2005 01:28 PM


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