Linux Mint Türkiye
Yazılım => Yazılım Yükleme ve Kaldırma => Konuyu başlatan: dirent - 21 Kasım 2015, 12:23:29
-
Merhaba,
Linux Mint 17.2 Cinnamon kullanıyorum.
https://www.linuxmint.net.tr/nasil-java-9-kurulumu/
adresinden Java 9 yüklemesini yapmaya çalıştım ancak yanlışlıkla LTS için değil LMDE için olan kodları kullandım.
Bunun sonucunda Java9 doğal olarak yüklenemedi ve Yazılım Yöneticisi açılmamaya Güncelleme yöneticisi ise,
/etc/apt/sources.list.d adresindeki lmde-java.list dosyasında yazan "DEB komutunu anlayamadığını diyordu.
Bahsettiği klasöre girip o dosyayı silmek istedim ama izin vermedi.
Terminale,
sudo rm /etc/apt/sources.list.d/lmde-java.listyazıp dosyayı sildim. Bunu yaptıktan sonra hem güncelleme yöneticisi hem de yazılım yöneticisi çalıştı.
Hala Java 9 kurulu olmadığı için LTE kodları ile kurmayı denedim bu sefer şu çıktıyı verdi:
sudo apt-get install oracle-java9-installer
Paket listeleri okunuyor... Bitti
Bağımlılık ağacı oluşturuluyor
Durum bilgisi okunuyor... Bitti
Önerilen paketler:
visualvm ttf-baekmuk ttf-unfonts ttf-unfonts-core ttf-kochi-gothic
ttf-sazanami-gothic ttf-kochi-mincho ttf-sazanami-mincho ttf-arphic-uming
Tavsiye edilen paketler:
gsfonts-x11
Aşağıdaki YENİ paketler kurulacak:
oracle-java9-installer
0 paket yükseltilecek, 1 yeni paket kurulacak, 0 paket kaldırılacak ve 28 paket yükseltilmeyecek.
20,9 kB arşiv dosyası indirilecek.
Bu işlem tamamlandıktan sonra 128 kB ek disk alanı kullanılacak.
Alınıyor: 1 http://ppa.launchpad.net/webupd8team/java/ubuntu/ trusty/main oracle-java9-installer all 9b91+9b91arm-1~webupd8~1 [20,9 kB]
0 sn.'de 20,9 kB alındı (79,2 kB/s)
Paketler önyapılandırılıyor ...
Önceden seçili olmayan oracle-java9-installer paketi seçiliyor.
(Veritabanı okunuyor... mevcut 191317 dosya veya klasör yüklü.)
Açılmaya hazırlanan .../oracle-java9-installer_9b91+9b91arm-1~webupd8~1_all.deb ...
oracle-license-v1-1 license has already been accepted
oracle-java9-installer (9b91+9b91arm-1~webupd8~1) paketi açılıyor ...
gnome-menus (3.10.1-0ubuntu2) için tetikleyiciler işleniyor ...
desktop-file-utils (0.22-1ubuntu1) için tetikleyiciler işleniyor ...
mime-support (3.54ubuntu1.1) için tetikleyiciler işleniyor ...
shared-mime-info (1.2-0ubuntu3) için tetikleyiciler işleniyor ...
oracle-java9-installer (9b91+9b91arm-1~webupd8~1) ayarlanıyor...
Downloading Oracle Java 9...
wget: /etc/wgetrc dosyasının 137. satırında sözdizimi hatası.
wgetrc dosyasını ayıklama başarısız. Lütfen
'/etc/wgetrc' dosyasını denetleyin,
veya --config ile farklı bir dosya belirtin.
download failed
Oracle JDK 9 is NOT installed.
dpkg: error processing package oracle-java9-installer (--configure):
installed post-installation script alt işlemi çıkış durumunda hata döndürdü : 1
E: Sub-process /usr/bin/dpkg returned an error code (1)
/etc/wgetrc/ dosyasını denetleyin demiş, onun çıktısı:
###
### Sample Wget initialization file .wgetrc
###
## You can use this file to change the default behaviour of wget or to
## avoid having to type many many command-line options. This file does
## not contain a comprehensive list of commands -- look at the manual
## to find out what you can put into this file. You can find this here:
## $ info wget.info 'Startup File'
## Or online here:
## https://www.gnu.org/software/wget/manual/wget.html#Startup-File
##
## Wget initialization file can reside in /etc/wgetrc
## (global, for all users) or $HOME/.wgetrc (for a single user).
##
## To use the settings in this file, you will have to uncomment them,
## as well as change them, in most cases, as the values on the
## commented-out lines are the default values (e.g. "off").
##
## Global settings (useful for setting up in /etc/wgetrc).
## Think well before you change them, since they may reduce wget's
## functionality, and make it behave contrary to the documentation:
##
# You can set retrieve quota for beginners by specifying a value
# optionally followed by 'K' (kilobytes) or 'M' (megabytes). The
# default quota is unlimited.
#quota = inf
# You can lower (or raise) the default number of retries when
# downloading a file (default is 20).
#tries = 20
# Lowering the maximum depth of the recursive retrieval is handy to
# prevent newbies from going too "deep" when they unwittingly start
# the recursive retrieval. The default is 5.
#reclevel = 5
# By default Wget uses "passive FTP" transfer where the client
# initiates the data connection to the server rather than the other
# way around. That is required on systems behind NAT where the client
# computer cannot be easily reached from the Internet. However, some
# firewalls software explicitly supports active FTP and in fact has
# problems supporting passive transfer. If you are in such
# environment, use "passive_ftp = off" to revert to active FTP.
#passive_ftp = off
passive_ftp = on
# The "wait" command below makes Wget wait between every connection.
# If, instead, you want Wget to wait only between retries of failed
# downloads, set waitretry to maximum number of seconds to wait (Wget
# will use "linear backoff", waiting 1 second after the first failure
# on a file, 2 seconds after the second failure, etc. up to this max).
#waitretry = 10
##
## Local settings (for a user to set in his $HOME/.wgetrc). It is
## *highly* undesirable to put these settings in the global file, since
## they are potentially dangerous to "normal" users.
##
## Even when setting up your own ~/.wgetrc, you should know what you
## are doing before doing so.
##
# Set this to on to use timestamping by default:
#timestamping = off
# It is a good idea to make Wget send your email address in a `From:'
# header with your request (so that server administrators can contact
# you in case of errors). Wget does *not* send `From:' by default.
#header = From: Your Name <username@site.domain>
# You can set up other headers, like Accept-Language. Accept-Language
# is *not* sent by default.
#header = Accept-Language: en
# You can set the default proxies for Wget to use for http, https, and ftp.
# They will override the value in the environment.
#https_proxy = http://proxy.yoyodyne.com:18023/
#http_proxy = http://proxy.yoyodyne.com:18023/
#ftp_proxy = http://proxy.yoyodyne.com:18023/
# If you do not want to use proxy at all, set this to off.
#use_proxy = on
# You can customize the retrieval outlook. Valid options are default,
# binary, mega and micro.
#dot_style = default
# Setting this to off makes Wget not download /robots.txt. Be sure to
# know *exactly* what /robots.txt is and how it is used before changing
# the default!
#robots = on
# It can be useful to make Wget wait between connections. Set this to
# the number of seconds you want Wget to wait.
#wait = 0
# You can force creating directory structure, even if a single is being
# retrieved, by setting this to on.
#dirstruct = off
# You can turn on recursive retrieving by default (don't do this if
# you are not sure you know what it means) by setting this to on.
#recursive = off
# To always back up file X as X.orig before converting its links (due
# to -k / --convert-links / convert_links = on having been specified),
# set this variable to on:
#backup_converted = off
# To have Wget follow FTP links from HTML files by default, set this
# to on:
#follow_ftp = off
# To try ipv6 addresses first:
#prefer-family = IPv6
# Set default IRI support state
#iri = off
# Force the default system encoding
#locale = UTF-8
# Force the default remote server encoding
#remoteencoding = UTF-8
# Turn on to prevent following non-HTTPS links when in recursive mode
#httpsonly = off
# Tune HTTPS security (auto, SSLv2, SSLv3, TLSv1, PFS)
#secureprotocol = auto
check_certificate = off
Yardımcı olmanızı rica ederim.
Şimdiden teşekkürler.
-
LMDE'ye eklenen depo ile Linux Mint 17.2'ye eklenen depo aynı, şu an için bu pratikde bir sorun teşkil etmiyor.
Aşağıdaki komut ile geany uygulamasını yükleyiniz.
sudo apt-get install geany
Sonra aşağıdaki komut ile /etc/wgetrc dosyasını Geany ile açınız.
sudo geany /etc/wgetrc
Geany sol tarafta dosyanın satırlarını gösterir, 137. satırda ne var kontrol ediniz.
-
SElam,
Cevabınız için teşekkürler.
Dediğinizi yaptım, 137. satırda bir şey yazmıyor.
java -version komutu çıktısı şu:
java version "1.9.0-ea"
Java(TM) SE Runtime Environment (build 1.9.0-ea-b91)
Java HotSpot(TM) Client VM (build 1.9.0-ea-b91, mixed mode)
-
Son çıktıya göre Java 9 kurulmuş ve etkinleşmiş. Konu başlığını etiketlerseniz, konuyu kilitleyebiliriz. Çözülen başlıkların etiketlenmesi hakkında (https://forum.linuxmint.net.tr/index.php?topic=2058.0)
-
Teşekkür ederim.