LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   I have not /etc/apt/sources.list (https://www.linuxquestions.org/questions/linux-newbie-8/i-have-not-etc-apt-sources-list-4175532624/)

what is 01-31-2015 12:18 PM

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.

TobiSGD 01-31-2015 12:27 PM

/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?

EDDY1 01-31-2015 12:28 PM

Which Os, Debian Ubuntu, Mint?
Quote:

cat /etc/os-release
uname -a

what is 01-31-2015 12:43 PM

I have ubuntu server in virtual Box.

EDDY1 01-31-2015 12:50 PM

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

what is 01-31-2015 12:59 PM

I have ubuntu-11.10-server-i386
but in the link I can not find the release of ubuntu 11.(there is not)

rokytnji 01-31-2015 01:08 PM

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.

what is 01-31-2015 01:27 PM

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~


Head_on_a_Stick 01-31-2015 01:34 PM

Copy the backup file:
Code:

cd /etc/apt
sudo cp sources.list~ sources.list

EDIT: Or rename the "soureces.list"

what is 01-31-2015 01:43 PM

I typed:
Code:


cd /etc/apt
sudo cp sources.list~ sources.list

The result:No error

What is the next step?

thanks.

Head_on_a_Stick 01-31-2015 02:08 PM

Quote:

Originally Posted by what is (Post 5309633)
What is the next step?

Code:

sudo apt-get update
This should refresh your package database -- it there are any errors, post them here.

yancek 01-31-2015 02:26 PM

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/

what is 02-01-2015 01:44 AM

Quote:

Originally Posted by Head_on_a_Stick (Post 5309643)
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

Head_on_a_Stick 02-01-2015 06:30 AM

@yancek is quite correct -- change to a newer version, you shouldn't be using that one.

dolphin_oracle 02-01-2015 11:34 AM

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


All times are GMT -5. The time now is 10:11 AM.