LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   apt-get update and apt-get install problem please solve it. (https://www.linuxquestions.org/questions/linux-newbie-8/apt-get-update-and-apt-get-install-problem-please-solve-it-651007/)

regent_royal 06-23-2008 04:06 AM

apt-get update and apt-get install problem please solve it.
 
when I command

Quote:

apt-get install sun-java6-jdk
that gives me error

Quote:

root@regent:~/Desktop# apt-get install sun-java6-jdk
Reading package lists... Done
Building dependency tree... Done
W: Couldn't stat source package list http://archive.ubuntu.com breezy/universe Packages (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_breezy_universe_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://archive.ubuntu.com breezy/universe Packages (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_breezy_universe_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://archive.ubuntu.com breezy/universe Packages (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_breezy_universe_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://archive.ubuntu.com breezy/universe Packages (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_breezy_universe_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://archive.ubuntu.com breezy/multiverse Packages (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_breezy_multiverse_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://archive.ubuntu.com breezy/multiverse Packages (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_breezy_multiverse_binary-i386_Packages) - stat (2 No such file or directory)
W: You may want to run apt-get update to correct these problems
E: Couldn't find package sun-java6-jdk


so i give command


Quote:

apt-get update

that gives me error


Quote:

root@regent:~/Desktop# apt-get update
Ign cdrom://Ubuntu 5.10 _Breezy Badger_ - Release i386 (20051012) breezy Release.gpg
Ign http://archive.ubuntu.com breezy Release.gpg
Ign http://archive.ubuntu.com breezy Release
Ign http://archive.ubuntu.com breezy/universe Packages
Ign http://archive.ubuntu.com breezy/universe Packages
Ign http://archive.ubuntu.com breezy/universe Packages
Ign http://archive.ubuntu.com breezy/universe Packages
Ign http://archive.ubuntu.com breezy/multiverse Packages
Ign http://archive.ubuntu.com breezy/multiverse Packages
Err http://archive.ubuntu.com breezy/universe Packages
404 Not Found [IP: 91.189.88.31 80]
Err http://archive.ubuntu.com breezy/universe Packages
404 Not Found [IP: 91.189.88.31 80]
Err http://archive.ubuntu.com breezy/universe Packages
404 Not Found [IP: 91.189.88.31 80]
Err http://archive.ubuntu.com breezy/universe Packages
404 Not Found [IP: 91.189.88.31 80]
Err http://archive.ubuntu.com breezy/multiverse Packages
404 Not Found [IP: 91.189.88.31 80]
Err http://archive.ubuntu.com breezy/multiverse Packages
404 Not Found [IP: 91.189.88.31 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/dis...86/Packages.gz 404 Not Found [IP: 91.189.88.31 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/dis...86/Packages.gz 404 Not Found [IP: 91.189.88.31 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/dis...86/Packages.gz 404 Not Found [IP: 91.189.88.31 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/dis...86/Packages.gz 404 Not Found [IP: 91.189.88.31 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/dis...86/Packages.gz 404 Not Found [IP: 91.189.88.31 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/dis...86/Packages.gz 404 Not Found [IP: 91.189.88.31 80]
Reading package lists... Done
W: Couldn't stat source package list http://archive.ubuntu.com breezy/universe Packages (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_breezy_universe_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://archive.ubuntu.com breezy/universe Packages (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_breezy_universe_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://archive.ubuntu.com breezy/universe Packages (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_breezy_universe_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://archive.ubuntu.com breezy/universe Packages (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_breezy_universe_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://archive.ubuntu.com breezy/multiverse Packages (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_breezy_multiverse_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://archive.ubuntu.com breezy/multiverse Packages (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_breezy_multiverse_binary-i386_Packages) - stat (2 No such file or directory)
W: You may want to run apt-get update to correct these problems
E: Some index files failed to download, they have been ignored, or old ones used instead.


what should be the problem????

TedyBear 06-23-2008 04:24 AM

Solution:

Breezy isn't supported anymore (the folders have been removed from that server).

Try to run

"sudo apt-get dist-upgrade"

regent_royal 06-23-2008 04:38 AM

Quote:

sudo apt-get dist-upgrade
gives me same like error

sorry but I am new to linux so .... that type of problem occurs.

Quote:

root@regent:~/Desktop# sudo apt-get dist-upgrade
Reading package lists... Done
Building dependency tree... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
W: Couldn't stat source package list http://archive.ubuntu.com breezy/universe Packages (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_breezy_universe_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://archive.ubuntu.com breezy/universe Packages (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_breezy_universe_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://archive.ubuntu.com breezy/universe Packages (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_breezy_universe_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://archive.ubuntu.com breezy/universe Packages (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_breezy_universe_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://archive.ubuntu.com breezy/multiverse Packages (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_breezy_multiverse_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://archive.ubuntu.com breezy/multiverse Packages (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_breezy_multiverse_binary-i386_Packages) - stat (2 No such file or directory)
W: You may want to run apt-get update to correct these problems

TedyBear 06-23-2008 04:53 AM

The problem is Breezy is very, very old (in development terms)...

You will have to upgrade from Breezy to Dapper to Feisty to Hardy
-or-
you could download the Hardy Heron installation cd and do a clean install.

But if downloading a huge amount of files is no problem for you then do the following:

edit the file /etc/apt/sources.list (as root)
replace all instances of "breezy" with "dapper"

run the command
"sudo apt-get update && sudo apt-get dist-upgrade"

regent_royal 06-23-2008 06:12 AM

Thanks

Thank you I perform every steps and now I can apt-get update is possible...

but I have problem regarding installation to jdk or jvm check below...

Quote:

root@regent:/etc/apt# apt-get install sun-java6-jdk
Reading package lists... Done
Building dependency tree... Done
E: Couldn't find package sun-java6-jdk
root@regent:/etc/apt# apt-get install sun-java6-jvm
Reading package lists... Done
Building dependency tree... Done
E: Couldn't find package sun-java6-jvm

TedyBear 06-23-2008 06:34 AM

Are we speaking about the same machine or another one? If it's the same machine that you're upgrading from breezy to dapper then upgrade to feisty (and preferably to Hardy)

regent_royal 06-23-2008 07:05 AM

ok then I need to do all these things.
Thanks.
I think it take whole today...

TedyBear 06-23-2008 07:16 AM

It will take you a whole day - depending on your computer speed and internet connection.

Once dapper is completely installed and upgraded make sure to check the
System->Administration->Software Sources and make sure that all software repositories are checked (universe, multiverse, sources) and that the update-manager is set to look for new distrobutions. Then run the update-manager and have it check for the latest release.

It might be that it finds Ubuntu 8.04 Hardy Heron right away or then you have to go through Feisty->Gutsy->Hardy.

You should't need to edit the /etc/apt/sources.list file again.

Duck2006 06-23-2008 10:34 AM

Time wise it may be better to save your home folder and to a clean install of Handy, then copy your home folder back. Than going from update to update to update ect.

regent_royal 06-24-2008 06:52 AM

oh god while doing this I lost my firefox.....

And currently I have no cd how I can do this...

I m writing this from windows os on another drive....

TedyBear 06-24-2008 07:07 AM

You lost your firefox? What were you doing before that? Have you decided to download the Hardy CD? If you want you can try to launch the browser from a terminal window (in case it's just the shortcut that has been lost..)

If firefox is indeed gone then you may want to try if the epiphany browser is installed.

Just type epiphany in the terminal to launch it.

regent_royal 06-26-2008 07:38 AM

Problem solved I download Ubuntu 8.04 version and working fine. Some problem occurs but solved easily...


Thanks all who help me....


All times are GMT -5. The time now is 12:56 PM.