Blog categories

Comments

[Ubuntu] apt-get update error (403 Forbidden on nijel/phpmyadmin)

[Ubuntu] apt-get update error (403 Forbidden on nijel/phpmyadmin)

apt-get update 시 다음과 같은 error 발생

rony@ip-172-26-4-60:~$ sudo apt-get update
Get:1 http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu xenial InRelease [247 kB]
Get:2 http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB]
Get:3 http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB]
Get:4 http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu xenial/main Sources [868 kB]
Get:5 http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu xenial/restricted Sources [4,808 B]
Get:6 http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu xenial/universe Sources [7,728 kB]
Get:7 http://security.ubuntu.com/ubuntu xenial-security InRelease [109 kB]
Ign:8 http://ppa.launchpad.net/nijel/phpmyadmin/ubuntu xenial InRelease
Get:9 http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu xenial/multiverse Sources [179 kB]
Get:10 http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu xenial/main amd64 Packages [1,201 kB]
Get:11 http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu xenial/main Translation-en [568 kB]
Get:12 http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu xenial/restricted amd64 Packages [8,344 B]
Get:13 http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu xenial/restricted Translation-en [2,908 B]
Get:14 http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages [7,532 kB]
Get:15 http://ppa.launchpad.net/ondrej/php/ubuntu xenial InRelease [23.9 kB]
Get:16 http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu xenial/universe Translation-en [4,354 kB]
Get:17 http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu xenial/multiverse amd64 Packages [144 kB]
Get:18 http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu xenial/multiverse Translation-en [106 kB]
Get:19 http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu xenial-updates/main Sources [347 kB]
Get:20 http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu xenial-updates/restricted Sources [2,536 B]
Get:21 http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu xenial-updates/universe Sources [269 kB]
Get:22 http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu xenial-updates/multiverse Sources [8,748 B]
Get:23 http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [1,141 kB]
Ign:24 http://ppa.launchpad.net/nijel/phpmyadmin/ubuntu xenial Release
Get:25 http://security.ubuntu.com/ubuntu xenial-security/main Sources [164 kB]
Get:26 http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu xenial-updates/main Translation-en [432 kB]
Get:27 http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu xenial-updates/restricted amd64 Packages [7,616 B]
Get:28 http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu xenial-updates/restricted Translation-en [2,272 B]
Get:29 http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [797 kB]
Get:30 http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu xenial-updates/universe Translation-en [333 kB]
Get:31 http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 Packages [17.1 kB]
Get:32 http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu xenial-updates/multiverse Translation-en [8,632 B]
Get:33 http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu xenial-backports/main Sources [4,848 B]
Get:34 http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu xenial-backports/universe Sources [7,120 B]
Get:35 http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu xenial-backports/main amd64 Packages [7,280 B]
Get:36 http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu xenial-backports/main Translation-en [4,456 B]
Get:37 http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu xenial-backports/universe amd64 Packages [8,064 B]
Get:38 http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu xenial-backports/universe Translation-en [4,328 B]
Get:39 http://security.ubuntu.com/ubuntu xenial-security/restricted Sources [2,116 B]
Ign:40 http://ppa.launchpad.net/nijel/phpmyadmin/ubuntu xenial/main amd64 Packages
Get:41 http://security.ubuntu.com/ubuntu xenial-security/universe Sources [119 kB]
Get:42 http://security.ubuntu.com/ubuntu xenial-security/multiverse Sources [3,408 B]
Ign:43 http://ppa.launchpad.net/nijel/phpmyadmin/ubuntu xenial/main all Packages
Get:44 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages [864 kB]
Ign:45 http://ppa.launchpad.net/nijel/phpmyadmin/ubuntu xenial/main Translation-en_US
Get:46 http://security.ubuntu.com/ubuntu xenial-security/main Translation-en [325 kB]
Get:47 http://security.ubuntu.com/ubuntu xenial-security/restricted amd64 Packages [7,204 B]
Get:48 http://security.ubuntu.com/ubuntu xenial-security/restricted Translation-en [2,152 B]
Ign:49 http://ppa.launchpad.net/nijel/phpmyadmin/ubuntu xenial/main Translation-en
Get:50 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 Packages [491 kB]
Get:51 http://security.ubuntu.com/ubuntu xenial-security/universe Translation-en [201 kB]
Get:52 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 Packages [58.4 kB]
Get:53 http://security.ubuntu.com/ubuntu xenial-security/multiverse amd64 Packages [6,092 B]
Get:54 http://security.ubuntu.com/ubuntu xenial-security/multiverse Translation-en [2,888 B]
Get:55 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main Translation-en [30.2 kB]
Ign:40 http://ppa.launchpad.net/nijel/phpmyadmin/ubuntu xenial/main amd64 Packages
Ign:43 http://ppa.launchpad.net/nijel/phpmyadmin/ubuntu xenial/main all Packages
Ign:45 http://ppa.launchpad.net/nijel/phpmyadmin/ubuntu xenial/main Translation-en_US
Ign:49 http://ppa.launchpad.net/nijel/phpmyadmin/ubuntu xenial/main Translation-en
Ign:40 http://ppa.launchpad.net/nijel/phpmyadmin/ubuntu xenial/main amd64 Packages
Ign:43 http://ppa.launchpad.net/nijel/phpmyadmin/ubuntu xenial/main all Packages
Ign:45 http://ppa.launchpad.net/nijel/phpmyadmin/ubuntu xenial/main Translation-en_US
Ign:49 http://ppa.launchpad.net/nijel/phpmyadmin/ubuntu xenial/main Translation-en
Ign:40 http://ppa.launchpad.net/nijel/phpmyadmin/ubuntu xenial/main amd64 Packages
Ign:43 http://ppa.launchpad.net/nijel/phpmyadmin/ubuntu xenial/main all Packages
Ign:45 http://ppa.launchpad.net/nijel/phpmyadmin/ubuntu xenial/main Translation-en_US
Ign:49 http://ppa.launchpad.net/nijel/phpmyadmin/ubuntu xenial/main Translation-en
Ign:40 http://ppa.launchpad.net/nijel/phpmyadmin/ubuntu xenial/main amd64 Packages
Ign:43 http://ppa.launchpad.net/nijel/phpmyadmin/ubuntu xenial/main all Packages
Ign:45 http://ppa.launchpad.net/nijel/phpmyadmin/ubuntu xenial/main Translation-en_US
Ign:49 http://ppa.launchpad.net/nijel/phpmyadmin/ubuntu xenial/main Translation-en
Err:40 http://ppa.launchpad.net/nijel/phpmyadmin/ubuntu xenial/main amd64 Packages
  403  Forbidden [IP: 91.189.95.83 80]
Ign:43 http://ppa.launchpad.net/nijel/phpmyadmin/ubuntu xenial/main all Packages
Ign:45 http://ppa.launchpad.net/nijel/phpmyadmin/ubuntu xenial/main Translation-en_US
Ign:49 http://ppa.launchpad.net/nijel/phpmyadmin/ubuntu xenial/main Translation-en
Fetched 29.0 MB in 15s (1,868 kB/s)
Reading package lists... Done
W: The repository 'http://ppa.launchpad.net/nijel/phpmyadmin/ubuntu xenial Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://ppa.launchpad.net/nijel/phpmyadmin/ubuntu/dists/xenial/main/binary-amd64/Packages  403  Forbidden [IP: 91.189.95.83 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.

phpmyadmin ppa repository 에서 403 Forbidden error 발생

ppa:nijel/phpmyadmin 을 간단히 없애주면 되는데,
add-apt-repository –remove 로는 다음과 같은 error가 발생하면서 불가함

rony@ip-172-26-4-60:~$ sudo add-apt-repository --remove ppa:nijel/phpmyadmin
Cannot add PPA: 'ppa:~nijel/ubuntu/phpmyadmin'.
The user named '~nijel' has no PPA named 'ubuntu/phpmyadmin'
Please choose from the following available PPAs:

1. sources.list 확인

rony@ip-172-26-4-60:~$ grep ^'deb ' /etc/apt/sources.list /etc/apt/sources.list.d/*.list
/etc/apt/sources.list:deb http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu/ xenial main restricted
/etc/apt/sources.list:deb http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
/etc/apt/sources.list:deb http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu/ xenial universe
/etc/apt/sources.list:deb http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu/ xenial-updates universe
/etc/apt/sources.list:deb http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu/ xenial multiverse
/etc/apt/sources.list:deb http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu/ xenial-updates multiverse
/etc/apt/sources.list:deb http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
/etc/apt/sources.list:deb http://security.ubuntu.com/ubuntu xenial-security main restricted
/etc/apt/sources.list:deb http://security.ubuntu.com/ubuntu xenial-security universe
/etc/apt/sources.list:deb http://security.ubuntu.com/ubuntu xenial-security multiverse
/etc/apt/sources.list.d/nijel-ubuntu-phpmyadmin-xenial.list:deb http://ppa.launchpad.net/nijel/phpmyadmin/ubuntu xenial main
/etc/apt/sources.list.d/ondrej-ubuntu-php-xenial.list:deb http://ppa.launchpad.net/ondrej/php/ubuntu xenial main

2. deb 삭제 진행

rony@ip-172-26-4-60:~$ sudo add-apt-repository -r 'deb http://ppa.launchpad.net/nijel/phpmyadmin/ubuntu xenial main'

3. sources.list 재확인

deb가 제대로 삭제되었는지 다음과 같이 확인

rony@ip-172-26-4-60:~$ grep ^'deb ' /etc/apt/sources.list /etc/apt/sources.list.d/*.list
/etc/apt/sources.list:deb http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu/ xenial main restricted
/etc/apt/sources.list:deb http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
/etc/apt/sources.list:deb http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu/ xenial universe
/etc/apt/sources.list:deb http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu/ xenial-updates universe
/etc/apt/sources.list:deb http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu/ xenial multiverse
/etc/apt/sources.list:deb http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu/ xenial-updates multiverse
/etc/apt/sources.list:deb http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
/etc/apt/sources.list:deb http://security.ubuntu.com/ubuntu xenial-security main restricted
/etc/apt/sources.list:deb http://security.ubuntu.com/ubuntu xenial-security universe
/etc/apt/sources.list:deb http://security.ubuntu.com/ubuntu xenial-security multiverse
/etc/apt/sources.list.d/ondrej-ubuntu-php-xenial.list:deb http://ppa.launchpad.net/ondrej/php/ubuntu xenial main

4. Update 진행

이후 update 성공적으로 시행

rony@ip-172-26-4-60:~$ sudo apt-get update
Hit:1 http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu xenial InRelease
Hit:2 http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu xenial-updates InRelease
Hit:3 http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu xenial-backports InRelease
Get:4 http://security.ubuntu.com/ubuntu xenial-security InRelease [109 kB]
Hit:5 http://ppa.launchpad.net/ondrej/php/ubuntu xenial InRelease
Fetched 109 kB in 1s (81.2 kB/s)
Reading package lists... Done

https://zetawiki.com/wiki/%EC%9A%B0%EB%B6%84%ED%88%AC_PPA_%EC%A0%9C%EA%B1%B0

이메일 주소는 공개되지 않습니다. 필수 필드는 *로 표시됩니다

div#stuning-header .dfd-stuning-header-bg-container {background-image: url(https://tech.sangron.com/wp-content/uploads/sites/2/2018/04/ubuntu_wallpaper_background.jpg);background-color: #3f3f3f;background-size: cover;background-position: top center;background-attachment: initial;background-repeat: no-repeat;}#stuning-header div.page-title-inner {min-height: 350px;}