You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Ubuntu 14.04安装Python失败:执行sudo apt-get命令遇依赖问题求助

Fixing "python-pycurl not installable" & Broken Packages on Ubuntu 14.04

Hey there, let's tackle this dependency issue you're facing with python-software-properties on Ubuntu 14.04. The root cause here is that Ubuntu 14.04 reached its end-of-life (EOL) years ago, so the default software sources are no longer maintained—this is why python-pycurl can't be found. Here's how to fix it step by step:

Step 1: Switch to Old Releases Repository

First, we need to update your system's software sources to point to Ubuntu's old-releases archive, which still hosts packages for EOL versions.

  • Backup your current sources list (just in case):
    sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
    
  • Edit the sources list with a text editor (we'll use nano here):
    sudo nano /etc/apt/sources.list
    
  • Replace all existing content with these lines (they point to the trusty/14.04 old releases):

    deb http://old-releases.ubuntu.com/ubuntu/ trusty main restricted universe multiverse
    deb http://old-releases.ubuntu.com/ubuntu/ trusty-updates main restricted universe multiverse
    deb http://old-releases.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse
    deb http://old-releases.ubuntu.com/ubuntu/ trusty-security main restricted universe multiverse

  • Save and exit: Press Ctrl+O, hit Enter, then Ctrl+X.

Step 2: Update APT Cache

Refresh your package cache to pull in data from the new sources:

sudo apt-get update

You might see some warnings about expired keys—this is normal for EOL releases, and we can proceed anyway.

Step 3: Fix Broken Packages

Run this command to let APT automatically resolve and fix any broken dependencies:

sudo apt-get -f install

Step 4: Reinstall python-software-properties

Now try installing the package again:

sudo apt-get install python-software-properties

Alternative: Manually Install python-pycurl (If Step 4 Fails)

If the above steps don't work, you can manually grab the python-pycurl deb package and install it first:

  • For 64-bit systems:
    wget http://old-releases.ubuntu.com/ubuntu/pool/universe/p/pycurl/python-pycurl_7.19.3-0ubuntu3_amd64.deb
    sudo dpkg -i python-pycurl_7.19.3-0ubuntu3_amd64.deb
    
  • For 32-bit systems:
    wget http://old-releases.ubuntu.com/ubuntu/pool/universe/p/pycurl/python-pycurl_7.19.3-0ubuntu3_i386.deb
    sudo dpkg -i python-pycurl_7.19.3-0ubuntu3_i386.deb
    

Then run the install command for python-software-properties again.


内容的提问来源于stack exchange,提问作者Jahnavi Lingamaneni

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.20 11:53:59