在 ubuntu 上安装 atom IDE

在 ubuntu 上安装 atom IDE

我尝试在 ubuntu 上安装 ATOM IDE 但出现错误。如何修复此错误。

sudo apt-get update
sudo apt-get upgrade

抛出这个:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 atom : Depends: gconf2
        Depends: gconf-service
        Depends: python but it is not installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

并在命令行中运行

  sudo apt --fix-broken install

    Do you want to continue? [Y/n] y
    Ign:1 http://ir.archive.ubuntu.com/ubuntu artful/universe amd64 gconf2-common all 3.2.6-4ubuntu1
    Err:2 http://ir.archive.ubuntu.com/ubuntu artful/universe amd64 libgconf-2-4 amd64 3.2.6-4ubuntu1
      404  Not Found
    Err:3 http://ir.archive.ubuntu.com/ubuntu artful/universe amd64 gconf-service-backend amd64 3.2.6-4ubuntu1
      404  Not Found
    Err:4 http://ir.archive.ubuntu.com/ubuntu artful/universe amd64 gconf-service amd64 3.2.6-4ubuntu1
      404  Not Found
    Err:5 http://ir.archive.ubuntu.com/ubuntu artful/universe amd64 gconf2 amd64 3.2.6-4ubuntu1
      404  Not Found
    Err:6 http://ir.archive.ubuntu.com/ubuntu artful/main amd64 python2.7-minimal amd64 2.7.14-2ubuntu2
      404  Not Found
    Err:7 http://ir.archive.ubuntu.com/ubuntu artful/main amd64 python-minimal amd64 2.7.14-2ubuntu1
      404  Not Found
    Err:8 http://ir.archive.ubuntu.com/ubuntu artful/main amd64 python2.7 amd64 2.7.14-2ubuntu2
      404  Not Found
    Err:9 http://ir.archive.ubuntu.com/ubuntu artful/main amd64 libpython-stdlib amd64 2.7.14-2ubuntu1
      404  Not Found
    Err:10 http://ir.archive.ubuntu.com/ubuntu artful/main amd64 python amd64 2.7.14-2ubuntu1
      404  Not Found
    Err:1 http://ir.archive.ubuntu.com/ubuntu artful/universe i386 gconf2-common all 3.2.6-4ubuntu1
      404  Not Found
    E: Failed to fetch http://ir.archive.ubuntu.com/ubuntu/pool/universe/g/gconf/gconf2-common_3.2.6-4ubuntu1_all.deb  404  Not Found
    E: Failed to fetch http://ir.archive.ubuntu.com/ubuntu/pool/universe/g/gconf/libgconf-2-4_3.2.6-4ubuntu1_amd64.deb  404  Not Found
    E: Failed to fetch http://ir.archive.ubuntu.com/ubuntu/pool/universe/g/gconf/gconf-service-backend_3.2.6-4ubuntu1_amd64.deb  404  Not Found
    E: Failed to fetch http://ir.archive.ubuntu.com/ubuntu/pool/universe/g/gconf/gconf-service_3.2.6-4ubuntu1_amd64.deb  404  Not Found
    E: Failed to fetch http://ir.archive.ubuntu.com/ubuntu/pool/universe/g/gconf/gconf2_3.2.6-4ubuntu1_amd64.deb  404  Not Found
    E: Failed to fetch http://ir.archive.ubuntu.com/ubuntu/pool/main/p/python2.7/python2.7-minimal_2.7.14-2ubuntu2_amd64.deb  404  Not Found
    E: Failed to fetch http://ir.archive.ubuntu.com/ubuntu/pool/main/p/python-defaults/python-minimal_2.7.14-2ubuntu1_amd64.deb  404  Not Found
    E: Failed to fetch http://ir.archive.ubuntu.com/ubuntu/pool/main/p/python2.7/python2.7_2.7.14-2ubuntu2_amd64.deb  404  Not Found
    E: Failed to fetch http://ir.archive.ubuntu.com/ubuntu/pool/main/p/python-defaults/libpython-stdlib_2.7.14-2ubuntu1_amd64.deb  404  Not Found
    E: Failed to fetch http://ir.archive.ubuntu.com/ubuntu/pool/main/p/python-defaults/python_2.7.14-2ubuntu1_amd64.deb  404  Not Found
    E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

答案1

在 /etc/apt/sources.list 文件中将您的存储库服务器从 更改ir.archive.ubuntu.comarchive.ubuntu.com(例如),然后执行更新、升级和修复损坏的依赖关系。

相关内容