I'm trying to install imagemagick package from my own repository. Here is my step-by-step:
I created apt repository using reprepro utility with conf:
Origin: custom-repo.s3.amazonaws.com
Label: custom-repo.s3.amazonaws.com
Codename: precise
Components: main
Architectures: i386 amd64
Description: Custom APT Repository
SignWith: 12312312
DebOverride: override.precise
DscOverride: override.precise
On the target instance I added this custom repo to /etc/apt/sources.list.d/custom.list:
deb http://custom-repo.s3.amazonaws.com precise main
And changed APT preferences (/etc/apt/preferences):
Package: *
Pin: release o=custom-repo.s3.amazonaws.com
Pin-Priority: 999
Here is APT policy (after update):
imagemagick:
Installed: (none)
Candidate: 8:6.6.9.7-5ubuntu3.3
Version table:
8:6.6.9.7-5ubuntu3.3 0
500 http://archive.ubuntu.com/ubuntu/ precise-updates/main amd64 Packages
500 http://security.ubuntu.com/ubuntu/ precise-security/main amd64 Packages
999 http://custom-repo.s3.amazonaws.com/ precise/main amd64 Packages
8:6.6.9.7-5ubuntu3 0
500 http://archive.ubuntu.com/ubuntu/ precise/main amd64 Packages
Now I'm trying to install imagemagick package from my own repository (but it's installed from archive.ubuntu.com):
apt-get install imagemagick
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
imagemagick-doc autotrace cups-bsd lpr lprng enscript ffmpeg gimp gnuplot grads hp2xx html2ps libwmf-bin mplayer povray radiance sane-utils texlive-base-bin transfig xdg-utils ufraw-batch
The following NEW packages will be installed:
imagemagick
0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded.
Need to get 49.2 kB of archives.
After this operation, 213 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu/ precise-updates/main imagemagick amd64 8:6.6.9.7-5ubuntu3.3 [49.2 kB]
Fetched 49.2 kB in 0s (96.8 kB/s)
Selecting previously unselected package imagemagick.
(Reading database ... 94215 files and directories currently installed.)
Unpacking imagemagick (from .../imagemagick_8%3a6.6.9.7-5ubuntu3.3_amd64.deb) ...
Processing triggers for man-db ...
Setting up imagemagick (8:6.6.9.7-5ubuntu3.3) ...