Ruby on Rails paperclip imagemagick error -


i know has been asked before, none of provided solutions seems work for. keep gettin error while try upload files paperclip , imagemagick.

could not run `identify` command. please install imagemagick. 

i installed imagemagick few times alreay with

sudo apt-get install imagemagick 

i put these in development.rb. i'm not sure means, read in in question here:

  paperclip.options[:image_magick_path] = "/opt/imagemagick/bin"   paperclip.options[:command_path] = "/opt/imagemagick/bin" 

this model:

class book < activerecord::base     has_attached_file :file   has_attached_file :picture, :styles => { :small => "100x200"}   validates_attachment :picture, content_type: { content_type: ["image/jpg", "image/jpeg", "image/png", "image/gif"] } 

is there else can do?

ther eis error after installation of imagemagick. dont know how can fix it:

warning: following packages cannot authenticated!   imagemagick-common libilmbase6 liblqr-1-0 libmagickcore5 libmagickwand5   libopenexr6 libmagickcore5-extra imagemagick libnetpbm10 netpbm install these packages without verification [y/n]? y err http://si.archive.ubuntu.com/ubuntu/ saucy-updates/main imagemagick-common 8:6.7.7.10-5ubuntu3.1   404  not found [ip: 193.2.1.88 80] err http://si.archive.ubuntu.com/ubuntu/ saucy/main libilmbase6 amd64 1.0.1-6   404  not found [ip: 193.2.1.88 80] err http://si.archive.ubuntu.com/ubuntu/ saucy/main liblqr-1-0 amd64 0.4.1-2   404  not found [ip: 193.2.1.88 80] err http://si.archive.ubuntu.com/ubuntu/ saucy/main libopenexr6 amd64 1.6.1-7   404  not found [ip: 193.2.1.88 80] err http://security.ubuntu.com/ubuntu/ saucy-security/main imagemagick-common 8:6.7.7.10-5ubuntu3.1   404  not found [ip: 91.189.92.201 80] err http://security.ubuntu.com/ubuntu/ saucy-security/main libmagickcore5 amd64 8:6.7.7.10-5ubuntu3.1   404  not found [ip: 91.189.92.201 80] err http://security.ubuntu.com/ubuntu/ saucy-security/main libmagickwand5 amd64 8:6.7.7.10-5ubuntu3.1   404  not found [ip: 91.189.92.201 80] err http://security.ubuntu.com/ubuntu/ saucy-security/main libmagickcore5-extra amd64 8:6.7.7.10-5ubuntu3.1   404  not found [ip: 91.189.92.201 80] err http://security.ubuntu.com/ubuntu/ saucy-security/main imagemagick amd64 8:6.7.7.10-5ubuntu3.1   404  not found [ip: 91.189.92.201 80] failed fetch http://security.ubuntu.com/ubuntu/pool/main/i/imagemagick/imagemagick-common_6.7.7.10-5ubuntu3.1_all.deb  404  not found [ip: 91.189.92.201 80] failed fetch http://si.archive.ubuntu.com/ubuntu/pool/main/i/ilmbase/libilmbase6_1.0.1-6_amd64.deb  404  not found [ip: 193.2.1.88 80] failed fetch http://si.archive.ubuntu.com/ubuntu/pool/main/libl/liblqr/liblqr-1-0_0.4.1-2_amd64.deb  404  not found [ip: 193.2.1.88 80] failed fetch http://security.ubuntu.com/ubuntu/pool/main/i/imagemagick/libmagickcore5_6.7.7.10-5ubuntu3.1_amd64.deb  404  not found [ip: 91.189.92.201 80] failed fetch http://security.ubuntu.com/ubuntu/pool/main/i/imagemagick/libmagickwand5_6.7.7.10-5ubuntu3.1_amd64.deb  404  not found [ip: 91.189.92.201 80] failed fetch http://si.archive.ubuntu.com/ubuntu/pool/main/o/openexr/libopenexr6_1.6.1-7_amd64.deb  404  not found [ip: 193.2.1.88 80] failed fetch http://security.ubuntu.com/ubuntu/pool/main/i/imagemagick/libmagickcore5-extra_6.7.7.10-5ubuntu3.1_amd64.deb  404  not found [ip: 91.189.92.201 80] failed fetch http://security.ubuntu.com/ubuntu/pool/main/i/imagemagick/imagemagick_6.7.7.10-5ubuntu3.1_amd64.deb  404  not found [ip: 91.189.92.201 80] e: unable fetch archives, maybe run apt-get update or try --fix-missing? 


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -