I'm a Debian newbie and trying to install JDK on my new OS, receiving the following error: Please insert the disk labeled: Debian GNU/Linux 7.8.0 Wheezy - Official amd64 DVD Binary-1 20150110-14:43 in drive /media/cdrom/
I am using the following commands: apt-get update + apt-get install default-jdk
I searched for the requested file but with no success but with no luck. I'd be happy to get an explanation to this error and where can I find the requested file. The OS is installed as a Virtual Box guest.
/etc/apt/sources.list:
#
# deb cdrom:[Debian GNU/Linux 7.8.0 _Wheezy_ - Official amd64 DVD Binary-1 20150110-14:43]/ wheezy contrib main
deb cdrom:[Debian GNU/Linux 7.8.0 _Wheezy_ - Official amd64 DVD Binary-1 20150110-14:43]/ wheezy contrib main
deb http://debian.co.il/debian/ wheezy main
deb-src http://debian.co.il/debian/ wheezy main
deb http://security.debian.org/ wheezy/updates main contrib
deb-src http://security.debian.org/ wheezy/updates main contrib
# wheezy-updates, previously known as 'volatile'
deb http://debian.co.il/debian/ wheezy-updates main contrib
deb-src http://debian.co.il/debian/ wheezy-updates main contrib
You need to delete the following line:
deb cdrom:[Debian GNU/Linux 7.8.0 _Wheezy_ - Official amd64 DVD Binary-1 20150110-14:43]/ wheezy contrib main
Then update apt:
$ sudo apt-get update && sudo apt-get dist-upgrade
Now you should be good to install.
Open /etc/apt/sources.list (as a root or super user) You need to remove second from two first lines(leave just this one mark with '#') :
# deb cdrom:[Debian GNU/Linux 7.8.0 _Wheezy_ - Official amd64 DVD Binary-1 20150110-14:43]/ wheezy contrib main
and add this lines to the end of the file:
deb http://ppa.launchpad.net/webupd8team/java/ubuntu wheezy main
deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu wheezy main
After you save the file and exit you need to run this command (adding repo keys):
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys EEA14886
And this one:
apt-get update
Now you are ready to install java, for exemple:
apt-get install oracle-java7-installer oracle-java7-set-default
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.