12.04 LTS flashplugin-installer 问题

12.04 LTS flashplugin-installer 问题

当我安装 flashplugin 时遇到问题:

flashplugin-installer: downloading http://archive.canonical.com/pool/partner/a/adobe-flashplugin/adobe-flashplugin_11.2.202.235.orig.tar.gz
Traceback (most recent call last):
  File "/usr/lib/update-notifier/package-data-downloader", line 234, in process_download_requests
    dest_file = urllib.urlretrieve(files[i])[0]
  File "/usr/lib/python2.7/urllib.py", line 93, in urlretrieve
    return _urlopener.retrieve(url, filename, reporthook, data)
  File "/usr/lib/python2.7/urllib.py", line 239, in retrieve
    fp = self.open(url, data)
  File "/usr/lib/python2.7/urllib.py", line 207, in open
    return getattr(self, name)(url)
  File "/usr/lib/python2.7/urllib.py", line 344, in open_http
    h.endheaders(data)
  File "/usr/lib/python2.7/httplib.py", line 954, in endheaders
    self._send_output(message_body)
  File "/usr/lib/python2.7/httplib.py", line 814, in _send_output
    self.send(msg)
  File "/usr/lib/python2.7/httplib.py", line 776, in send
    self.connect()
  File "/usr/lib/python2.7/httplib.py", line 757, in connect
    self.timeout, self.source_address)
  File "/usr/lib/python2.7/socket.py", line 571, in create_connection
    raise err
IOError: [Errno socket error] [Errno 113] No route to host
ttf-mscorefonts-installer: downloading http://downloads.sourceforge.net/corefonts/andale32.exe
Traceback (most recent call last):
  File "/usr/lib/update-notifier/package-data-downloader", line 234, in process_download_requests
    dest_file = urllib.urlretrieve(files[i])[0]
  File "/usr/lib/python2.7/urllib.py", line 93, in urlretrieve
    return _urlopener.retrieve(url, filename, reporthook, data)
  File "/usr/lib/python2.7/urllib.py", line 239, in retrieve
    fp = self.open(url, data)
  File "/usr/lib/python2.7/urllib.py", line 207, in open
    return getattr(self, name)(url)
  File "/usr/lib/python2.7/urllib.py", line 344, in open_http
    h.endheaders(data)
  File "/usr/lib/python2.7/httplib.py", line 954, in endheaders
    self._send_output(message_body)
  File "/usr/lib/python2.7/httplib.py", line 814, in _send_output
    self.send(msg)
  File "/usr/lib/python2.7/httplib.py", line 776, in send
    self.connect()
  File "/usr/lib/python2.7/httplib.py", line 757, in connect
    self.timeout, self.source_address)
  File "/usr/lib/python2.7/socket.py", line 571, in create_connection
    raise err
IOError: [Errno socket error] [Errno 113] No route to host
Konfigurowanie flashplugin-installer (11.2.202.235ubuntu0.12.04.1) ...

答案1

flashplugin-installer我在 Ubuntu 12.04 中安装时遇到了同样的问题。我已通过以下方式修复此错误:

  1. 添加正确的 /etc/environment 代理/etc/wgetrc
  2. 添加以下行/etc/sudoers
    • Defaults env_keep="http_proxy"
  3. 通过安装以下内容:
    • sudo apt-get install policykit-1
    • sudo apt-get install ttf-mscorefonts-installer
    • sudo apt-get --reinstall install flashplugin-installer

现在问题已经解决了。

答案2

“没有到主机的路由”是网络连接问题。

您的互联网连接还能正常使用吗?

您可能需要检查:

  • 您能从同一台 PC ping 任一主机(archive.canonical.com或)吗?downloads.sourceforge.net
  • 您是否有任何防火墙或其他网络设置可以阻止访问这些网站?
  • 您是否依赖代理服务器来访问您可能已在浏览器和 APT 中配置的 Web,但 Python/update-notifier 却无法接收?如果是这样,此错误报告在 12.04 中可能会有帮助。本质上,问题是这两个软件包的安装程序需要访问网络来下载数据,但 sudo 不会向它们传递您的系统代理设置(APT 以不同的方式获取代理设置,因此不受影响)。

相关内容