I have a Rails app that use Paperclip. Paperclip needs imagemagick for its functionality.
我有一个使用Paperclip的Rails应用程序。 Paperclip需要imagemagick才能实现其功能。
I've been trying all afternoon to install it, but still don't know how to solve this issue:
我整个下午都在尝试安装它,但仍然不知道如何解决这个问题:
sudo apt-get install imagemagick
sudo apt-get install imagemagick
...
Get:12 http://archive.ubuntu.com/ubuntu/ quantal/main x11proto-kb-dev all 1.0.6-2 [269 kB]
Get:13 http://archive.ubuntu.com/ubuntu/ quantal/main xtrans-dev all 1.2.7-1 [84.3 kB]
Err http://archive.ubuntu.com/ubuntu/ quantal-updates/main libxcb1-dev amd64 1.8.1-1ubuntu1.1
404 Not Found [IP: 91.189.92.201 80]
Err http://security.ubuntu.com/ubuntu/ quantal-security/main libxcb1-dev amd64 1.8.1-1ubuntu1.1
404 Not Found [IP: 91.189.92.200 80]
Err http://archive.ubuntu.com/ubuntu/ quantal-updates/main libx11-dev amd64 2:1.5.0-1ubuntu0.1
404 Not Found [IP: 91.189.92.201 80]
Err http://security.ubuntu.com/ubuntu/ quantal-security/main libx11-dev amd64 2:1.5.0-1ubuntu0.1
404 Not Found [IP: 91.189.92.200 80]
Err http://archive.ubuntu.com/ubuntu/ quantal-updates/main libx11-doc all 2:1.5.0-1ubuntu0.1
404 Not Found [IP: 91.189.92.201 80]
Err http://security.ubuntu.com/ubuntu/ quantal-security/main libx11-doc all 2:1.5.0-1ubuntu0.1
404 Not Found [IP: 91.189.92.200 80]
Get:14 http://archive.ubuntu.com/ubuntu/ quantal/main x11proto-xext-dev all 7.2.1-1 [265 kB]
Err http://archive.ubuntu.com/ubuntu/ quantal-updates/main libxext-dev amd64 2:1.3.1-2ubuntu0.12.10.1
404 Not Found [IP: 91.189.92.201 80]
Err http://security.ubuntu.com/ubuntu/ quantal-security/main libxext-dev amd64 2:1.3.1-2ubuntu0.12.10.1
404 Not Found [IP: 91.189.92.200 80]
Err http://archive.ubuntu.com/ubuntu/ quantal-updates/main libxml2-dev amd64 2.8.0+dfsg1-5ubuntu2.5
404 Not Found [IP: 91.189.92.201 80]
Err http://security.ubuntu.com/ubuntu/ quantal-security/main libxml2-dev amd64 2.8.0+dfsg1-5ubuntu2.5
404 Not Found [IP: 91.189.92.200 80]
Fetched 880 kB in 4s (218 kB/s)
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/libx/libxml2/libxml2_2.8.0+dfsg1-5ubuntu2.5_amd64.deb 404 Not Found [IP: 91.189.92.200 80]
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/d/dpkg/libdpkg-perl_1.16.7ubuntu6.2_all.deb 404 Not Found [IP: 91.189.92.200 80]
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/d/dpkg/dpkg-dev_1.16.7ubuntu6.2_all.deb 404 Not Found [IP: 91.189.92.200 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/b/build-essential/build-essential_11.5ubuntu3_amd64.deb 404 Not Found [IP: 91.189.92.201 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/f/fakeroot/fakeroot_1.18.4-2_amd64.deb 404 Not Found [IP: 91.189.92.201 80]
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/f/freetype/libfreetype6-dev_2.4.10-0ubuntu1.1_amd64.deb 404 Not Found [IP: 91.189.92.200 80]
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/libj/libjpeg-turbo/libjpeg-turbo8-dev_1.2.1-0ubuntu2.12.10.1_amd64.deb 404 Not Found [IP: 91.189.92.200 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/libp/libpng/libpng12-dev_1.2.49-1ubuntu1_amd64.deb 404 Not Found [IP: 91.189.92.201 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/x/x11proto-core/x11proto-core-dev_7.0.23-1_all.deb 404 Not Found [IP: 91.189.92.201 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/libx/libxau/libxau-dev_1.0.7-1_amd64.deb 404 Not Found [IP: 91.189.92.201 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/x/x11proto-input/x11proto-input-dev_2.2-1_all.deb 404 Not Found [IP: 91.189.92.201 80]
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/libx/libxcb/libxcb1-dev_1.8.1-1ubuntu1.1_amd64.deb 404 Not Found [IP: 91.189.92.200 80]
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/libx/libx11/libx11-dev_1.5.0-1ubuntu0.1_amd64.deb 404 Not Found [IP: 91.189.92.200 80]
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/libx/libx11/libx11-doc_1.5.0-1ubuntu0.1_all.deb 404 Not Found [IP: 91.189.92.200 80]
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/libx/libxext/libxext-dev_1.3.1-2ubuntu0.12.10.1_amd64.deb 404 Not Found [IP: 91.189.92.200 80]
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/libx/libxml2/libxml2-dev_2.8.0+dfsg1-5ubuntu2.5_amd64.deb 404 Not Found [IP: 91.189.92.200 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
The parameter --fix-missing
doesn't help either.
参数--fix-missing也没有帮助。
Somewhere I've read that before the installation itself I should run sudo apt-get update
, but this returns following error:
在安装之前我已经读过的地方我应该运行sudo apt-get update,但这会返回以下错误:
...
Ign http://security.ubuntu.com quantal-security/main Translation-en
Err http://security.ubuntu.com quantal-security/main amd64 Packages
404 Not Found [IP: 91.189.91.15 80]
Ign http://archive.ubuntu.com quantal Release.gpg
Ign http://archive.ubuntu.com quantal-updates Release.gpg
Ign http://archive.ubuntu.com quantal Release
Ign http://archive.ubuntu.com quantal-updates Release
Ign http://archive.ubuntu.com quantal/main amd64 Packages/DiffIndex
Ign http://archive.ubuntu.com quantal/universe amd64 Packages/DiffIndex
Ign http://archive.ubuntu.com quantal-updates/main amd64 Packages/DiffIndex
Ign http://archive.ubuntu.com quantal-updates/universe amd64 Packages/DiffIndex
Ign http://archive.ubuntu.com quantal/main Translation-en
Ign http://archive.ubuntu.com quantal/universe Translation-en
Ign http://archive.ubuntu.com quantal-updates/main Translation-en
Ign http://archive.ubuntu.com quantal-updates/universe Translation-en
Err http://archive.ubuntu.com quantal/main amd64 Packages
404 Not Found [IP: 91.189.92.200 80]
Err http://archive.ubuntu.com quantal/universe amd64 Packages
404 Not Found [IP: 91.189.92.200 80]
Err http://archive.ubuntu.com quantal-updates/main amd64 Packages
404 Not Found [IP: 91.189.92.200 80]
Err http://archive.ubuntu.com quantal-updates/universe amd64 Packages
404 Not Found [IP: 91.189.92.200 80]
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/quantal-security/main/binary-amd64/Packages 404 Not Found [IP: 91.189.91.15 80]
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/quantal/main/binary-amd64/Packages 404 Not Found [IP: 91.189.92.200 80]
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/quantal/universe/binary-amd64/Packages 404 Not Found [IP: 91.189.92.200 80]
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/quantal-updates/main/binary-amd64/Packages 404 Not Found [IP: 91.189.92.200 80]
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/quantal-updates/universe/binary-amd64/Packages 404 Not Found [IP: 91.189.92.200 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.
I unfortunately have no idea how to fix this problem.
遗憾的是我不知道如何解决这个问题。
1 个解决方案
#1
-1
The errors you are seeing when you run "sudo apt-get update" are because you are running version 12.04, which is a LTS version. Long term service version. They have released version 14.04 now so 12.04 is no longer supported for security updates.
运行“sudo apt-get update”时看到的错误是因为您运行的是版本12.04,这是一个LTS版本。长期服务版。他们现在已经发布了14.04版本,因此安全更新不再支持12.04版本。
I would recommend updating to version 14.04. This will resolve the issue you are seeing with the security updates as well as provide a more secure and stable platform for your application.
我建议更新到14.04版。这将解决您在安全更新中看到的问题,并为您的应用程序提供更安全,更稳定的平台。
sudo do-release-upgrade
That will upgrade your ubuntu version. After restarting, then run the following:
这将升级你的ubuntu版本。重新启动后,运行以下命令:
sudo apt-get update && apt-get install imagemagick --fix-missing
That will update the repo's and install imagemagick for you.
这将更新回购并为您安装imagemagick。
#1
-1
The errors you are seeing when you run "sudo apt-get update" are because you are running version 12.04, which is a LTS version. Long term service version. They have released version 14.04 now so 12.04 is no longer supported for security updates.
运行“sudo apt-get update”时看到的错误是因为您运行的是版本12.04,这是一个LTS版本。长期服务版。他们现在已经发布了14.04版本,因此安全更新不再支持12.04版本。
I would recommend updating to version 14.04. This will resolve the issue you are seeing with the security updates as well as provide a more secure and stable platform for your application.
我建议更新到14.04版。这将解决您在安全更新中看到的问题,并为您的应用程序提供更安全,更稳定的平台。
sudo do-release-upgrade
That will upgrade your ubuntu version. After restarting, then run the following:
这将升级你的ubuntu版本。重新启动后,运行以下命令:
sudo apt-get update && apt-get install imagemagick --fix-missing
That will update the repo's and install imagemagick for you.
这将更新回购并为您安装imagemagick。