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?

【apt】E: The repository 'https:---' does not have a Release file. の直し方

Posted at

症状

$ sudo apt update
Identified face as haruki-goto
Hit:1 https://download.docker.com/linux/ubuntu noble InRelease                                                                                                
Hit:2 https://brave-browser-apt-release.s3.brave.com stable InRelease                                                                                         
Hit:3 https://dl.google.com/linux/chrome/deb stable InRelease                                                                                                 
Ign:4 https://releases.warp.dev/linux/deb stable InRelease                                                                                                    
Hit:5 https://packages.microsoft.com/repos/code stable InRelease                                                                                              
Hit:6 https://releases.warp.dev/linux/deb stable Release                                                                                                      
Hit:8 http://security.ubuntu.com/ubuntu noble-security InRelease                                                                                              
Get:9 https://pkgs.tailscale.com/stable/ubuntu noble InRelease                                                                      
Hit:10 http://archive.ubuntu.com/ubuntu noble InRelease                                                       
Hit:11 http://archive.ubuntu.com/ubuntu noble-updates InRelease                         
Hit:12 https://ppa.launchpadcontent.net/boltgolt/howdy/ubuntu noble InRelease
Get:13 https://apt.fury.io/wez * InRelease                          
Hit:14 http://archive.ubuntu.com/ubuntu noble-backports InRelease    
Hit:15 https://ppa.launchpadcontent.net/flatpak/stable/ubuntu noble InRelease
Ign:16 https://ppa.launchpadcontent.net/phablet-team/tools/ubuntu noble InRelease
Err:17 https://ppa.launchpadcontent.net/phablet-team/tools/ubuntu noble Release
  404  Not Found [IP: 185.125.190.80 443]
Reading package lists... Done
N: Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'https://brave-browser-apt-release.s3.brave.com stable InRelease' doesn't support architecture 'i386'
E: The repository 'https://ppa.launchpadcontent.net/phablet-team/tools/ubuntu noble 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.

このようにリリースファイルが見つかりませんよと怒られてパッケージの更新ができません。

解決方法

この場合、

E: The repository 'https://ppa.launchpadcontent.net/phablet-team/tools/ubuntu noble Release' does not have a Release file.

のURLのうち、

https://ppa.launchpadcontent.net/[ phablet-team/tools ]/ubuntu

の括弧内の文字列を確認します。

そして、その文字列の前に**ppa:**を付けて、リポジトリから削除します。

bash
sudo add-apt-repository --remove ppa:phablet-team/tools

これでエラーが出なければOKなのですが、自分の場合は以下のようなエラーが発生しました。

Error
Traceback (most recent call last):
  File "/usr/bin/add-apt-repository", line 452, in <module>
    sys.exit(0 if addaptrepo.main() else 1)
                  ^^^^^^^^^^^^^^^^^
  File "/usr/bin/add-apt-repository", line 435, in main
    shortcut = handler(source, **shortcut_params)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/softwareproperties/shortcuts.py", line 40, in shortcut_handler
    return handler(shortcut, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 89, in __init__
    if self.lpppa.publish_debug_symbols:
       ^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 133, in lpppa
    self._lpppa = self.lpteam.getPPAByName(name=self.ppaname)
                  ^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 120, in lpteam
    self._lpteam = self.lp.people(self.teamname)
                   ^^^^^^^
  File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 111, in lp
    self._lp = login_func("%s.%s" % (self.__module__, self.__class__.__name__),
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/launchpadlib/launchpad.py", line 494, in login_anonymously
    return cls(
           ^^^^
  File "/usr/lib/python3/dist-packages/launchpadlib/launchpad.py", line 230, in __init__
    super(Launchpad, self).__init__(
  File "/usr/lib/python3/dist-packages/lazr/restfulclient/resource.py", line 511, in __init__
    self._wadl = self._browser.get_wadl_application(self._root_uri)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/lazr/restfulclient/_browser.py", line 502, in get_wadl_application
    response, content = self._request(url, media_type=wadl_type)
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/lazr/restfulclient/_browser.py", line 441, in _request
    response, content = self._request_and_retry(
                        ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/lazr/restfulclient/_browser.py", line 400, in _request_and_retry
    response, content = self._connection.request(
                        ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/httplib2/__init__.py", line 1669, in request
    (response, new_content) = self._request(
                              ^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/launchpadlib/launchpad.py", line 144, in _request
    response, content = super(LaunchpadOAuthAwareHttp, self)._request(
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/lazr/restfulclient/_browser.py", line 204, in _request
    return super(RestfulHttp, self)._request(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/httplib2/__init__.py", line 1421, in _request
    (response, content) = self._conn_request(conn, request_uri, method, body, headers)
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/httplib2/__init__.py", line 1343, in _conn_request
    conn.connect()
  File "/usr/lib/python3/dist-packages/httplib2/__init__.py", line 1133, in connect
    sock.connect((self.host, self.port))
TimeoutError: [Errno 110] Connection timed out

単純にConnection time outしてます。

Time outの修正

以下の記事に同様の症状がありましたので紹介します。

ここではループバックインターフェースからすべてのネットワークインターフェースのiPv6を無効化します。

bash
sudo sysctl -w net.ipv6.conf.all.disable_ipv6=1
sudo sysctl -w net.ipv6.conf.default.disable_ipv6=1
sudo sysctl -w net.ipv6.conf.lo.disable_ipv6=1

もし永続化するなら/etc/sysctl.confに書いてください。

/etc/sysctl.conf
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
  • iPv6がOFFになっているかの確認。1が出力されていたらOKです。
bash
cat /proc/sys/net/ipv6/conf/all/disable_ipv6

そして最後にリポジトリを削除しましょう。

bash
sudo add-apt-repository --remove ppa:phablet-team/tools
title

Repository: 'Types: deb
URIs: https://ppa.launchpadcontent.net/phablet-team/tools/ubuntu/
Suites: noble
Components: main
'
More info: https://launchpad.net/~phablet-team/+archive/ubuntu/tools
Removing repository.
Press [ENTER] to continue or Ctrl-c to cancel.
Removing entry from /etc/apt/sources.list.d/phablet-team-ubuntu-tools-noble.sources
Hit:1 https://brave-browser-apt-release.s3.brave.com stable InRelease                                                                                         
Hit:2 https://dl.google.com/linux/chrome/deb stable InRelease                                                                                                 
Hit:3 https://packages.microsoft.com/repos/code stable InRelease                                                                                              
Hit:4 https://download.docker.com/linux/ubuntu noble InRelease                                                                                                
Hit:5 http://archive.ubuntu.com/ubuntu noble InRelease                                                                                                        
Ign:6 https://releases.warp.dev/linux/deb stable InRelease                                                                                                    
Hit:7 https://releases.warp.dev/linux/deb stable Release                                                                                                      
Hit:8 http://archive.ubuntu.com/ubuntu noble-updates InRelease                                                                                             
Hit:10 http://security.ubuntu.com/ubuntu noble-security InRelease                                               
Get:11 https://pkgs.tailscale.com/stable/ubuntu noble InRelease                                                 
Hit:12 http://archive.ubuntu.com/ubuntu noble-backports InRelease                          
Get:13 https://apt.fury.io/wez * InRelease                          
Hit:14 https://ppa.launchpadcontent.net/boltgolt/howdy/ubuntu noble InRelease
Hit:15 https://ppa.launchpadcontent.net/flatpak/stable/ubuntu noble InRelease
Fetched 12.3 kB in 2s (6,763 B/s)
Reading package lists... Done
N: Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'https://brave-browser-apt-release.s3.brave.com stable InRelease' doesn't support architecture 'i386'

これにて完了です。お疲れ様でした。

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?