0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

E: The repository 'http://ppa.launchpad.net/webupd8team/java/ubuntu focal Release' does not have a Release file. こういうやつ

Posted at

sudo apt updateしたときにエラーになるやつ

  • 以下のように、apt updateで毎回出てくるエラーを消したい。
tomiyuichi@tomiyuichi-XPS-8930:~$ sudo apt update
Hit:1 http://archive.ubuntulinux.jp/ubuntu focal InRelease
Hit:2 http://archive.ubuntulinux.jp/ubuntu-ja-non-free focal InRelease         
Hit:3 https://dl.google.com/linux/chrome/deb stable InRelease                  
Hit:4 http://jp.archive.ubuntu.com/ubuntu focal InRelease                      
Hit:5 http://ppa.launchpad.net/kicad/kicad-6.0-releases/ubuntu focal InRelease 
Hit:6 http://security.ubuntu.com/ubuntu focal-security InRelease               
Hit:7 http://jp.archive.ubuntu.com/ubuntu focal-updates InRelease              
Hit:8 https://download.sublimetext.com apt/stable/ InRelease                   
Hit:9 https://apt.kitware.com/ubuntu focal InRelease                           
Hit:10 http://jp.archive.ubuntu.com/ubuntu focal-backports InRelease           
Ign:11 http://ppa.launchpad.net/webupd8team/java/ubuntu focal InRelease
Err:12 http://ppa.launchpad.net/webupd8team/java/ubuntu focal Release
  404  Not Found [IP: 2620:2d:4000:1::3e 80]
Reading package lists... Done
E: The repository 'http://ppa.launchpad.net/webupd8team/java/ubuntu focal Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
tomiyuichi@tomiyuichi-XPS-8930:~$
  • こちらの通りに実行すれば良い。
sudo add-apt-repository --remove ppa:[name]
  • 上の例で行くと、[name]の部分は「webupd8team/java」になるため、実行するコマンドは以下の通り
sudo add-apt-repository --remove ppa:webupd8team/java
  • 実行結果全体は↓のようになる
tomiyuichi@tomiyuichi-XPS-8930:~$ sudo add-apt-repository --remove ppa:webupd8team/java
 The Oracle JDK License has changed for releases starting April 16, 2019.

The new Oracle Technology Network License Agreement for Oracle Java SE is substantially different from prior Oracle JDK licenses. The new license permits certain uses, such as personal use and development use, at no cost -- but other uses authorized under prior Oracle JDK licenses may no longer be available. Please review the terms carefully before downloading and using this product. An FAQ is available here: https://www.oracle.com/technetwork/java/javase/overview/oracle-jdk-faqs.html

Oracle Java downloads now require logging in to an Oracle account to download Java updates, like the latest Oracle Java 8u211 / Java SE 8u212. Because of this I cannot update the PPA with the latest Java (and the old links were broken by Oracle).

For this reason, THIS PPA IS DISCONTINUED.

UPDATE:

For Oracle Java 17, see a different PPA -> https://www.linuxuprising.com/2021/09/how-to-install-oracle-java-17-lts-on.html

Old description:

Oracle Java (JDK) Installer (automatically downloads and installs Oracle JDK8). There are no actual Java files in this PPA.

Important -> Why Oracle Java 7 And 6 Installers No Longer Work: http://www.webupd8.org/2017/06/why-oracle-java-7-and-6-installers-no.html

Update: Oracle Java 9 has reached end of life: http://www.oracle.com/technetwork/java/javase/downloads/jdk9-downloads-3848520.html

The PPA supports Ubuntu 18.10, 18.04, 16.04, 14.04 and 12.04.

More info (and Ubuntu installation instructions):
- http://www.webupd8.org/2012/09/install-oracle-java-8-in-ubuntu-via-ppa.html

Debian installation instructions:
- Oracle Java 8: http://www.webupd8.org/2014/03/how-to-install-oracle-java-8-in-debian.html
 More info: https://launchpad.net/~webupd8team/+archive/ubuntu/java
Press [ENTER] to continue or Ctrl-c to cancel removing it.

tomiyuichi@tomiyuichi-XPS-8930:~$ sudo apt update
Hit:1 http://archive.ubuntulinux.jp/ubuntu focal InRelease
Hit:2 http://archive.ubuntulinux.jp/ubuntu-ja-non-free focal InRelease         
Hit:3 https://dl.google.com/linux/chrome/deb stable InRelease                  
Hit:4 http://ppa.launchpad.net/kicad/kicad-6.0-releases/ubuntu focal InRelease 
Hit:5 http://jp.archive.ubuntu.com/ubuntu focal InRelease                      
Hit:6 http://security.ubuntu.com/ubuntu focal-security InRelease               
Hit:7 https://download.sublimetext.com apt/stable/ InRelease                   
Hit:8 http://jp.archive.ubuntu.com/ubuntu focal-updates InRelease   
Hit:9 https://apt.kitware.com/ubuntu focal InRelease
Hit:10 http://jp.archive.ubuntu.com/ubuntu focal-backports InRelease
Reading package lists... Done
Building dependency tree       
Reading state information... Done
All packages are up to date.
tomiyuichi@tomiyuichi-XPS-8930:~$ 
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?