Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Claw-playbook: Update to fully support Ubuntu 18.04 'Bionic Beaver' #848

Closed
cferthorney opened this issue Jun 21, 2018 · 25 comments
Closed

Comments

@cferthorney
Copy link

Related to #842

Once a pull-request has been committed for #842 has been committed, there needs to be some deb name updates to reflect the fact that Ubuntu 18.04 has renamed some packages. Examples include php7.0-common to php-common.

It is also anticipated that some ansible when clauses will be required to detect when ubuntu/bionic64 is being used.

@cferthorney cferthorney changed the title Update Islandora-Devops/claw-playbook to fully support Ubuntu 18.04 'Bionic Beaver' Claw-playbook: Update to fully support Ubuntu 18.04 'Bionic Beaver' Jun 21, 2018
@dannylamb
Copy link
Contributor

Thanks for this. I'm definitely 👍 to supporting the latest ubuntu LTS.

@dannylamb
Copy link
Contributor

Linking to #950, I definitely want to ship with the latest LTS.

@ruebot
Copy link
Member

ruebot commented Jun 28, 2019

I can take this one if y'all want.

@ruebot
Copy link
Member

ruebot commented Jun 28, 2019

I guess a larger question here as I'm working on it, is do y'all just want to move to 18.04 or support 16.04 and 18.04 at the same time? If it is the latter things are gonna get really complicated. It's definitely doable, but will be awful to support and maintain. Maybe just move to 18.04?

@ruebot
Copy link
Member

ruebot commented Jun 28, 2019

We need to update the imagemagick ppa to 18.04. Bit of irc discussion here. Happy to do this work as well.

@dannylamb
Copy link
Contributor

Moving up to 18.04 was something I wanted to do pre-release but there just wasn't enough time. I'd prefer to just move to 18.04, but Im brutal and want to maintain as little as possible.

@whikloj
Copy link
Member

whikloj commented Jun 28, 2019

I'd say move, this is a demo/development box.

If you are installing this on your server you can setup whatever OS you want.

@Natkeeran
Copy link
Contributor

Running into the following issue on ubuntu 18:

failed: [other_stack] (item=[u'cmake', u'libpng16-dev', u'libtiff-dev', u'liblcms2-dev']) => {"ansible_loop_var": "item", "changed": false, "item": ["cmake", "libpng16-dev", "libtiff-dev", "liblcms2-dev"], "msg": "No package matching 'libpng16-dev' is available"}

@seth-shaw-unlv
Copy link
Contributor

@Natkeeran I think 'libpng16-dev' is now just 'libpng-dev'.

@ruebot
Copy link
Member

ruebot commented Jul 2, 2019

That's what I updated in my branch last week. Won't get back to working on it until Friday (July 4th) at the earliest.

The next place the build breaks down is what I mentioned above with the imagemagick ppa. I had planned on getting back to that on Friday, but if y'all need it sooner, feel free to assign it to somebody else.

@irfanrahman
Copy link

Maybe this will help, this works on both Ubuntu 16/18LTS with Ansible 2.8.1

this was my solution for Islandora8 once I found Lyrasis's PPA not working.
ImageMagic source with module support

fine_name: imagemagick_from_src.yml

`- name: Compile ImageMagic from source
hosts: localhost
vars:
local_src_dir: "/usr/local/src/"
imagemagick_version: ImageMagick-7.0.8-51
imagemagick_tarball_url: "https://imagemagick.org/download/{{ imagemagick_version }}.tar.gz"
imagemagick_src_dir: "/usr/local/src/{{ imagemagick_version }}"

tasks:

  • name: Installing ImageMagic Dependencies
    become: yes
    apt:
    name: ['pkg-config', 'libopenjp2-tools', 'libopenjp2-7-dev', 'libjpeg-dev', 'libpng-dev', 'libtiff-dev', 'libraw-dev', 'unzip', 'python-apt', 'libltdl7', 'libltdl-dev', 'libghc-bzlib-dev', 'libxml2-dev']
    update_cache: yes

  • name: Go to the local SRC folder and update LDConfig
    command: chdir=/usr/local/src/ ls
    command: ldconfig /usr/local/lib

  • name: Downloading ImageMagic source
    become: yes
    get_url:
    url: "{{ imagemagick_tarball_url }}"
    dest: "/usr/local/src/{{ imagemagick_version }}.tar.gz"
    register: imagemagick_source

  • name: Unpacking ImageMagic
    become: yes
    unarchive:
    copy: yes
    dest: /usr/local/src/
    src: "{{ imagemagick_source.dest }}"
    when: imagemagick_source.changed
    register: imagemagick_source_unpack

  • name: Configuring ImageMagic source with module support
    command: "./configure --with-modules --enable-shared"
    args:
    chdir: "{{ imagemagick_src_dir }}"
    when: imagemagick_source_unpack.changed
    register: imagemagick_configure

  • name: Installing ImageMagic
    become: yes
    shell: make && make install
    args:
    chdir: "{{ imagemagick_src_dir }}"
    when: imagemagick_configure.changed

  • name: Update LDConfig
    command: ldconfig /usr/local/lib
    `

@Natkeeran
Copy link
Contributor

@jonathangreen Any plans to provide a repo for bionic similar to http://ppa.launchpad.net/lyrasis/imagemagick-jp2/ubuntu/dists/ ?

@jonathangreen
Copy link
Contributor

jonathangreen commented Jul 4, 2019

IRC discussion from here:
https://logs.woh.ca/islandora/2019-06-28#1561735682-1561736848

15:29 <ruebot> jonathangee: https://launchpad.net/~lyrasis/+archive/ubuntu/imagemagick-jp2 -- can you add bionic (18.04)? 
15:29 <ruebot> jonathangee: or was that just a workaround for 16.04? 
15:31 <jonathangee> ruebot: so it is a work around, due to imagemagick in 16.04 not being compiled with jp2 support by default. it wasn't compiled with jp2 support because libjp2(?) wasn't accepted into the cannonical repositories over some security audit issues. 
15:32 <ruebot> jonathangee: ah! 
15:32 <jonathangee> ruebot: there was a ticket to pull in jp2 support when they could, so it owuld be worth checking if 18.04 is compiled with jp2 support 
15:32 <jonathangee> ruebot: if its not then we'll have to build a package for it 
15:32 <jonathangee> ruebot: let me see if i can find my notes, i think i have some links to the relevant tickets 
15:34 <ruebot> jonathangee: cool. checking on the vagrant/ansible machine now with 18.04. 
15:37 <ruebot> jonathangee: doesn't look like it is there by default so far. 
15:38 <jonathangee> ruebot: yah launchpad ticket is here 
15:38 <jonathangee> ruebot: https://bugs.launchpad.net/ubuntu/+source/imagemagick/+bug/1447968 
15:38 <ruebot> https://bugs.launchpad.net/ubuntu/+source/imagemagick/+bug/1447968/comments/7 
15:38 <ruebot> jinx 
15:38 <jonathangee> haha 
15:39 <ruebot> jonathangee: looks like we'll need the package then, right? 
15:40 <jonathangee> ruebot: yah i think thats the easiest thing to do. i can add one to that ppa when i have time. the package building process isn't always the easiest, but i think this one wasn't too bad. 
15:41 <jonathangee> ruebot: I'm not sure i'm going to have time for a little bit to look into it. If you wanted to try to build a package I can give you access to push it into that PPA. 
15:41 <ruebot> jonathangee: sure. i can give it a shot. 
15:42 <ruebot> jonathangee: is there a git repo for it, or is it all from scrach? 
15:44 <jonathangee> ruebot: I should write some documentation on this, so i remember for next time, but if I remember correctly. I pulled down the package manifest for the existing xenial package, then added the dependancies i needed and then rebuilt the package. 
15:44 <jonathangee> I think all it needed was to have the jp2 lib available 
15:45 <ruebot> jonathangee: cool. i'll dig in more here in a bit. if i can't get it sorted today, i'll get back to it next friday when i'm at york again. 
15:47 <jonathangee> ruebot: 👍🏻 lemme know if you run into any roadblocks i can help with 

@Natkeeran I don't have time at the moment to work on it, but if anyone wants to push a package to that PPA they are more than welcome to and I can provide access, or maybe we should create a Islandora PPA to install from. @ruebot I believe is going to work making the package when he has the bandwidth to work on it.

We could also install from source as mentioned earlier in this thread. I personally am not the hugest fan of doing that within playbooks, since you have to manager versions and make sure things are idempotent and it makes the playbook run longer as you have to do the compile. It is however possible, and might be the easiest thing to do here.

ruebot added a commit to yorkulibraries/islandora-playbook that referenced this issue Jul 12, 2019
- Update Vagrantfile to use 18.04 for Ubuntu builds
- Tweak package names, and required packages for 18.04
- Updates to get rid of some deprecation warnings
- Addresses Islandora/documentation#848
- Requires islandora-deprecated/ansible-role-grok#6
@ruebot
Copy link
Member

ruebot commented Jul 12, 2019

Should be good to go for testing:

PPA uploaded to Launchpad: https://launchpad.net/~lyrasis/+archive/ubuntu/imagemagick-jp2/+packages

@ruebot
Copy link
Member

ruebot commented Jul 12, 2019

convert still crashes on jp2 conversion with the most recent version of imagemagick I have up on the PPA.

Technically everything is there, but it still crashes 😢

vagrant@claw:/tmp$ convert yul_99144_OBJ_Datastream.tiff test.jp2
Aborted (core dumped)

vagrant@claw:/tmp$ convert -list format | grep -i JP2
      J2C* JP2       rw-   JPEG-2000 Code Stream Syntax (2.3.0)
      J2K* JP2       rw-   JPEG-2000 Code Stream Syntax (2.3.0)
      JP2* JP2       rw-   JPEG-2000 File Format Syntax (2.3.0)
      JPC* JP2       rw-   JPEG-2000 Code Stream Syntax (2.3.0)
      JPM* JP2       rw-   JPEG-2000 Code Stream Syntax (2.3.0)
      JPT* JP2       rw-   JPEG-2000 File Format Syntax (2.3.0)

I'll dig back in on the 19th.

@dannylamb
Copy link
Contributor

dannylamb commented Jul 13, 2019 via email

@ruebot
Copy link
Member

ruebot commented Jul 13, 2019

Yep.

$ convert
Version: ImageMagick 6.9.7-4 Q16 x86_64 20170114 http://www.imagemagick.org
Copyright: © 1999-2017 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Features: Cipher DPC Modules OpenMP 
Delegates (built-in): bzlib djvu fftw fontconfig freetype jbig jng jp2 jpeg lcms lqr ltdl lzma openexr pangocairo png tiff wmf x xml zlib

@dannylamb
Copy link
Contributor

💩 That's all I've got 🤷‍♂️

@seth-shaw-unlv
Copy link
Contributor

I know centos uses an old version of openjpeg that is problematic. Perhaps 2.3.1 fixes it?

@ruebot
Copy link
Member

ruebot commented Jul 19, 2019

This one has openjpeg 2.3.0. I'll dig into it, and see how difficult it'll be to get 2.3.1 there. Worse case, it's like with 16.04, and the PPA has ImageMagick and openjpeg debs.

@jonathangreen
Copy link
Contributor

jonathangreen commented Jul 19, 2019

I just tested the PPA version of imagemagick on a clean fresh vagrant box and it all looked okay to me. I wonder if maybe its the JP2 you are using for testing @ruebot?

What I tried:

$ vagrant init ubuntu/bionic64
$ vagrant up
$ vagrant ssh

vagrant@ubuntu-bionic:~$ sudo add-apt-repository ppa:lyrasis/imagemagick-jp2
vagrant@ubuntu-bionic:~$ sudo apt-get update
vagrant@ubuntu-bionic:~$ sudo apt-get install imagemagick
vagrant@ubuntu-bionic:~$ convert --version
Version: ImageMagick 6.9.7-4 Q16 x86_64 20170114 http://www.imagemagick.org
Copyright: © 1999-2017 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Features: Cipher DPC Modules OpenMP 
Delegates (built-in): bzlib djvu fftw fontconfig freetype jbig jng jp2 jpeg lcms lqr ltdl lzma openexr pangocairo png tiff wmf x xml zlib
vagrant@ubuntu-bionic:~$ convert -list format | grep -i JP2
      J2C* JP2       rw-   JPEG-2000 Code Stream Syntax (2.3.0)
      J2K* JP2       rw-   JPEG-2000 Code Stream Syntax (2.3.0)
      JP2* JP2       rw-   JPEG-2000 File Format Syntax (2.3.0)
      JPC* JP2       rw-   JPEG-2000 Code Stream Syntax (2.3.0)
      JPM* JP2       rw-   JPEG-2000 Code Stream Syntax (2.3.0)
      JPT* JP2       rw-   JPEG-2000 File Format Syntax (2.3.0)
vagrant@ubuntu-bionic:~$ wget https://palosverdeshistory.org/islandora/object/pvld%3A3367/datastream/OBJ/view -O test.jp2
vagrant@ubuntu-bionic:~$ identify test.jp2 
test.jp2 JP2 1886x2586 1886x2586+0+0 16-bit sRGB 309KB 0.000u 0:00.000
vagrant@ubuntu-bionic:~$ convert test.jp2 output.tiff
vagrant@ubuntu-bionic:~$ identify output.tiff 
output.tiff TIFF 1886x2586 1886x2586+0+0 16-bit sRGB 29.27MB 0.000u 0:00.000
vagrant@ubuntu-bionic:~$ convert output.tiff output.jp2
vagrant@ubuntu-bionic:~$ identify output.jp2 
output.jp2 JP2 1886x2586 1886x2586+0+0 16-bit sRGB 13.21MB 0.000u 0:00.000

So at least for me it seems like its working okay!

@ruebot
Copy link
Member

ruebot commented Jul 19, 2019

Weird. Failed for me doing the same thing.

[nruest@roo:/tmp]$ vagrant init ubuntu/bionic64
==> vagrant: A new version of Vagrant is available: 2.2.5!
==> vagrant: To upgrade visit: https://www.vagrantup.com/downloads.html

A `Vagrantfile` has been placed in this directory. You are now
ready to `vagrant up` your first virtual environment! Please read
the comments in the Vagrantfile as well as documentation on
`vagrantup.com` for more information on using Vagrant.
[nruest@roo:/tmp]$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'ubuntu/bionic64'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'ubuntu/bionic64' is up to date...
==> default: A newer version of the box 'ubuntu/bionic64' for provider 'virtualbox' is
==> default: available! You currently have version '20180709.0.0'. The latest is version
==> default: '20190718.0.0'. Run `vagrant box update` to update.
==> default: Setting the name of the VM: tmp_default_1563569872542_9350
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
==> default: Forwarding ports...
    default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 127.0.0.1:2222
    default: SSH username: vagrant
    default: SSH auth method: private key
    default: Warning: Connection reset. Retrying...
    default: Warning: Remote connection disconnect. Retrying...
    default: 
    default: Vagrant insecure key detected. Vagrant will automatically replace
    default: this with a newly generated keypair for better security.
    default: 
    default: Inserting generated public key within guest...
    default: Removing insecure key from the guest if it's present...
    default: Key inserted! Disconnecting and reconnecting using new SSH key...
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
==> default: Mounting shared folders...
    default: /vagrant => /tmp
[nruest@roo:/tmp]$ vagrant ssh
Welcome to Ubuntu 18.04 LTS (GNU/Linux 4.15.0-23-generic x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

  System information as of Fri Jul 19 20:58:40 UTC 2019

  System load:  0.23             Processes:             100
  Usage of /:   9.7% of 9.63GB   Users logged in:       0
  Memory usage: 12%              IP address for enp0s3: 10.0.2.15
  Swap usage:   0%


  Get cloud support with Ubuntu Advantage Cloud Guest:
    http://www.ubuntu.com/business/services/cloud

0 packages can be updated.
0 updates are security updates.


vagrant@ubuntu-bionic:~$ sudo add-apt-repository ppa:lyrasis/imagemagick-jp2
 Imagemagick compiles with JP2 support.
 More info: https://launchpad.net/~lyrasis/+archive/ubuntu/imagemagick-jp2
Press [ENTER] to continue or Ctrl-c to cancel adding it.

Get:1 http://ppa.launchpad.net/lyrasis/imagemagick-jp2/ubuntu bionic InRelease [15.4 kB]
Hit:2 http://archive.ubuntu.com/ubuntu bionic InRelease                       
Get:3 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Get:4 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]           
Get:5 http://ppa.launchpad.net/lyrasis/imagemagick-jp2/ubuntu bionic/main amd64 Packages [5952 B]                                              
Get:6 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]                                                            
Get:7 http://security.ubuntu.com/ubuntu bionic-security/restricted Sources [1504 B]
Get:8 http://ppa.launchpad.net/lyrasis/imagemagick-jp2/ubuntu bionic/main Translation-en [2896 B]     
Get:9 http://security.ubuntu.com/ubuntu bionic-security/multiverse Sources [2744 B]                           
Get:10 http://archive.ubuntu.com/ubuntu bionic/multiverse Sources [181 kB]
Get:11 http://security.ubuntu.com/ubuntu bionic-security/universe Sources [149 kB]
Get:12 http://archive.ubuntu.com/ubuntu bionic/main Sources [829 kB]            
Get:13 http://security.ubuntu.com/ubuntu bionic-security/main Sources [117 kB]
Get:14 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages [451 kB]
Get:15 http://archive.ubuntu.com/ubuntu bionic/universe Sources [9051 kB]
Get:16 http://security.ubuntu.com/ubuntu bionic-security/main Translation-en [156 kB] 
Get:17 http://security.ubuntu.com/ubuntu bionic-security/restricted amd64 Packages [4296 B]
Get:18 http://security.ubuntu.com/ubuntu bionic-security/restricted Translation-en [2192 B]
Get:19 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [572 kB]
Get:20 http://archive.ubuntu.com/ubuntu bionic/restricted Sources [5324 B]      
Get:21 http://security.ubuntu.com/ubuntu bionic-security/universe Translation-en [186 kB]
Get:22 http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages [8570 kB]  
Get:23 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 Packages [4008 B]
Get:24 http://security.ubuntu.com/ubuntu bionic-security/multiverse Translation-en [2060 B]
Get:25 http://archive.ubuntu.com/ubuntu bionic/universe Translation-en [4941 kB]  
Get:26 http://archive.ubuntu.com/ubuntu bionic/multiverse amd64 Packages [151 kB]
Get:27 http://archive.ubuntu.com/ubuntu bionic/multiverse Translation-en [108 kB]
Get:28 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse Sources [4612 B]
Get:29 http://archive.ubuntu.com/ubuntu bionic-updates/main Sources [287 kB]
Get:30 http://archive.ubuntu.com/ubuntu bionic-updates/restricted Sources [2068 B]                                                                                                                       
Get:31 http://archive.ubuntu.com/ubuntu bionic-updates/universe Sources [251 kB]                                                                                                                         
Get:32 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [684 kB]                                                                                                                      
Get:33 http://archive.ubuntu.com/ubuntu bionic-updates/main Translation-en [252 kB]                                                                                                                      
Get:34 http://archive.ubuntu.com/ubuntu bionic-updates/restricted amd64 Packages [6996 B]                                                                                                                
Get:35 http://archive.ubuntu.com/ubuntu bionic-updates/restricted Translation-en [3076 B]                                                                                                                
Get:36 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [974 kB]                                                                                                                  
Get:37 http://archive.ubuntu.com/ubuntu bionic-updates/universe Translation-en [294 kB]                                                                                                                  
Get:38 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 Packages [6640 B]                                                                                                                
Get:39 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse Translation-en [3556 B]                                                                                                                
Get:40 http://archive.ubuntu.com/ubuntu bionic-backports/universe Sources [2072 B]                                                                                                                       
Get:41 http://archive.ubuntu.com/ubuntu bionic-backports/main Sources [2532 B]                                                                                                                           
Get:42 http://archive.ubuntu.com/ubuntu bionic-backports/main amd64 Packages [2512 B]                                                                                                                    
Get:43 http://archive.ubuntu.com/ubuntu bionic-backports/main Translation-en [1644 B]                                                                                                                    
Get:44 http://archive.ubuntu.com/ubuntu bionic-backports/universe amd64 Packages [3736 B]                                                                                                                
Get:45 http://archive.ubuntu.com/ubuntu bionic-backports/universe Translation-en [1696 B]                                                                                                                
Fetched 28.5 MB in 9s (3021 kB/s)                                                                                                                                                                        
Reading package lists... Done
vagrant@ubuntu-bionic:~$ sudo apt-get update
Hit:1 http://security.ubuntu.com/ubuntu bionic-security InRelease
Hit:2 http://ppa.launchpad.net/lyrasis/imagemagick-jp2/ubuntu bionic InRelease
Hit:3 http://archive.ubuntu.com/ubuntu bionic InRelease
Hit:4 http://archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit:5 http://archive.ubuntu.com/ubuntu bionic-backports InRelease
Reading package lists... Done                     
vagrant@ubuntu-bionic:~$ sudo apt-get install imagemagick
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  fontconfig fontconfig-config fonts-dejavu-core fonts-droid-fallback fonts-noto-mono gcc-8-base ghostscript gsfonts hicolor-icon-theme imagemagick-6-common imagemagick-6.q16 libavahi-client3
  libavahi-common-data libavahi-common3 libcairo2 libcups2 libcupsfilters1 libcupsimage2 libdatrie1 libdjvulibre-text libdjvulibre21 libfftw3-double3 libfontconfig1 libgcc1 libgomp1 libgraphite2-3
  libgs9 libgs9-common libharfbuzz0b libijs-0.35 libilmbase12 libjbig0 libjbig2dec0 libjpeg-turbo8 libjpeg8 liblcms2-2 liblqr-1-0 libltdl7 libmagickcore-6.q16-3 libmagickcore-6.q16-3-extra
  libmagickwand-6.q16-3 libnetpbm10 libopenexr22 libopenjp2-7 libpango-1.0-0 libpangocairo-1.0-0 libpangoft2-1.0-0 libpaper-utils libpaper1 libpixman-1-0 libstdc++6 libthai-data libthai0 libtiff5
  libwmf0.2-7 libxcb-render0 libxcb-shm0 libxrender1 netpbm poppler-data
Suggested packages:
  fonts-noto ghostscript-x imagemagick-doc autotrace cups-bsd | lpr | lprng enscript ffmpeg gimp gnuplot grads graphviz hp2xx html2ps libwmf-bin mplayer povray radiance sane-utils texlive-base-bin
  transfig ufraw-batch xdg-utils cups-common libfftw3-bin libfftw3-dev liblcms2-utils inkscape libjxr-tools libwmf0.2-7-gtk poppler-utils fonts-japanese-mincho | fonts-ipafont-mincho
  fonts-japanese-gothic | fonts-ipafont-gothic fonts-arphic-ukai fonts-arphic-uming fonts-nanum
The following NEW packages will be installed:
  fontconfig fontconfig-config fonts-dejavu-core fonts-droid-fallback fonts-noto-mono ghostscript gsfonts hicolor-icon-theme imagemagick imagemagick-6-common imagemagick-6.q16 libavahi-client3
  libavahi-common-data libavahi-common3 libcairo2 libcups2 libcupsfilters1 libcupsimage2 libdatrie1 libdjvulibre-text libdjvulibre21 libfftw3-double3 libfontconfig1 libgomp1 libgraphite2-3 libgs9
  libgs9-common libharfbuzz0b libijs-0.35 libilmbase12 libjbig0 libjbig2dec0 libjpeg-turbo8 libjpeg8 liblcms2-2 liblqr-1-0 libltdl7 libmagickcore-6.q16-3 libmagickcore-6.q16-3-extra
  libmagickwand-6.q16-3 libnetpbm10 libopenexr22 libopenjp2-7 libpango-1.0-0 libpangocairo-1.0-0 libpangoft2-1.0-0 libpaper-utils libpaper1 libpixman-1-0 libthai-data libthai0 libtiff5 libwmf0.2-7
  libxcb-render0 libxcb-shm0 libxrender1 netpbm poppler-data
The following packages will be upgraded:
  gcc-8-base libgcc1 libstdc++6
3 upgraded, 58 newly installed, 0 to remove and 229 not upgraded.
Need to get 24.5 MB of archives.
After this operation, 85.3 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://archive.ubuntu.com/ubuntu bionic/main amd64 fonts-dejavu-core all 2.37-1 [1041 kB]
Get:2 http://ppa.launchpad.net/lyrasis/imagemagick-jp2/ubuntu bionic/main amd64 imagemagick-6-common all 8:6.9.7.4+dfsg-16ubuntu6.9 [102 kB]
Get:3 http://ppa.launchpad.net/lyrasis/imagemagick-jp2/ubuntu bionic/main amd64 libmagickcore-6.q16-3 amd64 8:6.9.7.4+dfsg-16ubuntu6.9 [1662 kB]
Get:4 http://archive.ubuntu.com/ubuntu bionic/main amd64 fontconfig-config all 2.12.6-0ubuntu2 [55.8 kB]
Get:5 http://archive.ubuntu.com/ubuntu bionic/main amd64 libfontconfig1 amd64 2.12.6-0ubuntu2 [137 kB]
Get:6 http://archive.ubuntu.com/ubuntu bionic/main amd64 fontconfig amd64 2.12.6-0ubuntu2 [169 kB]
Get:7 http://archive.ubuntu.com/ubuntu bionic/main amd64 fonts-droid-fallback all 1:6.0.1r16-1.1 [1805 kB]
Get:8 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libjpeg-turbo8 amd64 1.5.2-0ubuntu5.18.04.1 [110 kB]
Get:9 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 gcc-8-base amd64 8.3.0-6ubuntu1~18.04.1 [18.7 kB]
Get:10 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libstdc++6 amd64 8.3.0-6ubuntu1~18.04.1 [400 kB]
Get:11 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libgcc1 amd64 1:8.3.0-6ubuntu1~18.04.1 [40.7 kB]
Get:12 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libgomp1 amd64 8.3.0-6ubuntu1~18.04.1 [76.4 kB]
Get:13 http://ppa.launchpad.net/lyrasis/imagemagick-jp2/ubuntu bionic/main amd64 libmagickwand-6.q16-3 amd64 8:6.9.7.4+dfsg-16ubuntu6.9 [339 kB]
Get:14 http://archive.ubuntu.com/ubuntu bionic/main amd64 libfftw3-double3 amd64 3.3.7-1 [735 kB]
Get:15 http://archive.ubuntu.com/ubuntu bionic/main amd64 libjbig0 amd64 2.1-3.1build1 [26.7 kB]
Get:16 http://archive.ubuntu.com/ubuntu bionic/main amd64 libjpeg8 amd64 8c-2ubuntu8 [2194 B]
Get:17 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 liblcms2-2 amd64 2.9-1ubuntu0.1 [139 kB]
Get:18 http://archive.ubuntu.com/ubuntu bionic/main amd64 liblqr-1-0 amd64 0.4.2-2.1 [27.7 kB]
Get:19 http://archive.ubuntu.com/ubuntu bionic/main amd64 libltdl7 amd64 2.4.6-2 [38.8 kB]
Get:20 http://archive.ubuntu.com/ubuntu bionic/universe amd64 libopenjp2-7 amd64 2.3.0-1 [145 kB]
Get:21 http://ppa.launchpad.net/lyrasis/imagemagick-jp2/ubuntu bionic/main amd64 imagemagick-6.q16 amd64 8:6.9.7.4+dfsg-16ubuntu6.9 [480 kB]
Get:22 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libtiff5 amd64 4.0.9-5ubuntu0.2 [153 kB]
Get:23 http://archive.ubuntu.com/ubuntu bionic/main amd64 poppler-data all 0.4.8-2 [1479 kB]
Get:24 http://archive.ubuntu.com/ubuntu bionic/main amd64 fonts-noto-mono all 20171026-2 [75.5 kB]
Get:25 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libavahi-common-data amd64 0.7-3.1ubuntu1.2 [22.1 kB]
Get:26 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libavahi-common3 amd64 0.7-3.1ubuntu1.2 [21.6 kB]
Get:27 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libavahi-client3 amd64 0.7-3.1ubuntu1.2 [25.2 kB]
Get:28 http://ppa.launchpad.net/lyrasis/imagemagick-jp2/ubuntu bionic/main amd64 libmagickcore-6.q16-3-extra amd64 8:6.9.7.4+dfsg-16ubuntu6.9 [108 kB]
Get:29 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libcups2 amd64 2.2.7-1ubuntu2.6 [211 kB]
Get:30 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libcupsimage2 amd64 2.2.7-1ubuntu2.6 [18.6 kB]
Get:31 http://archive.ubuntu.com/ubuntu bionic/main amd64 libijs-0.35 amd64 0.35-13 [15.5 kB]
Get:32 http://archive.ubuntu.com/ubuntu bionic/main amd64 libjbig2dec0 amd64 0.13-6 [55.9 kB]
Get:33 http://ppa.launchpad.net/lyrasis/imagemagick-jp2/ubuntu bionic/main amd64 imagemagick amd64 8:6.9.7.4+dfsg-16ubuntu6.9 [59.7 kB]
Get:34 http://archive.ubuntu.com/ubuntu bionic/main amd64 libpaper1 amd64 1.1.24+nmu5ubuntu1 [13.6 kB]
Get:35 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libgs9-common all 9.26~dfsg+0-0ubuntu0.18.04.9 [5092 kB]
Get:36 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libgs9 amd64 9.26~dfsg+0-0ubuntu0.18.04.9 [2264 kB]
Get:37 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 ghostscript amd64 9.26~dfsg+0-0ubuntu0.18.04.9 [51.3 kB]
Get:38 http://archive.ubuntu.com/ubuntu bionic/main amd64 gsfonts all 1:8.11+urwcyr1.0.7~pre44-4.4 [3120 kB]
Get:39 http://archive.ubuntu.com/ubuntu bionic/main amd64 hicolor-icon-theme all 0.17-2 [9976 B]                                                                                                         
Get:40 http://archive.ubuntu.com/ubuntu bionic/main amd64 libpixman-1-0 amd64 0.34.0-2 [229 kB]                                                                                                          
Get:41 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libxcb-render0 amd64 1.13-2~ubuntu18.04 [14.7 kB]                                                                                      
Get:42 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libxcb-shm0 amd64 1.13-2~ubuntu18.04 [5600 B]                                                                                          
Get:43 http://archive.ubuntu.com/ubuntu bionic/main amd64 libxrender1 amd64 1:0.9.10-1 [18.7 kB]                                                                                                         
Get:44 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libcairo2 amd64 1.15.10-2ubuntu0.1 [580 kB]                                                                                            
Get:45 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libcupsfilters1 amd64 1.20.2-0ubuntu3.1 [108 kB]                                                                                       
Get:46 http://archive.ubuntu.com/ubuntu bionic/main amd64 libdatrie1 amd64 0.2.10-7 [17.8 kB]                                                                                                            
Get:47 http://archive.ubuntu.com/ubuntu bionic/main amd64 libdjvulibre-text all 3.5.27.1-8 [49.1 kB]                                                                                                     
Get:48 http://archive.ubuntu.com/ubuntu bionic/main amd64 libdjvulibre21 amd64 3.5.27.1-8 [559 kB]                                                                                                       
Get:49 http://archive.ubuntu.com/ubuntu bionic/main amd64 libgraphite2-3 amd64 1.3.11-2 [78.7 kB]                                                                                                        
Get:50 http://archive.ubuntu.com/ubuntu bionic/main amd64 libharfbuzz0b amd64 1.7.2-1ubuntu1 [232 kB]                                                                                                    
Get:51 http://archive.ubuntu.com/ubuntu bionic/main amd64 libilmbase12 amd64 2.2.0-11ubuntu2 [71.4 kB]                                                                                                   
Get:52 http://archive.ubuntu.com/ubuntu bionic/main amd64 libopenexr22 amd64 2.2.0-11.1ubuntu1 [560 kB]                                                                                                  
Get:53 http://archive.ubuntu.com/ubuntu bionic/main amd64 libthai-data all 0.1.27-2 [133 kB]                                                                                                             
Get:54 http://archive.ubuntu.com/ubuntu bionic/main amd64 libthai0 amd64 0.1.27-2 [18.0 kB]                                                                                                              
Get:55 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libpango-1.0-0 amd64 1.40.14-1ubuntu0.1 [153 kB]                                                                                       
Get:56 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libpangoft2-1.0-0 amd64 1.40.14-1ubuntu0.1 [33.2 kB]                                                                                   
Get:57 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libpangocairo-1.0-0 amd64 1.40.14-1ubuntu0.1 [20.8 kB]                                                                                 
Get:58 http://archive.ubuntu.com/ubuntu bionic/main amd64 libwmf0.2-7 amd64 0.2.8.4-12 [150 kB]                                                                                                          
Get:59 http://archive.ubuntu.com/ubuntu bionic/main amd64 libnetpbm10 amd64 2:10.0-15.3build1 [58.0 kB]                                                                                                  
Get:60 http://archive.ubuntu.com/ubuntu bionic/main amd64 libpaper-utils amd64 1.1.24+nmu5ubuntu1 [8170 B]                                                                                               
Get:61 http://archive.ubuntu.com/ubuntu bionic/main amd64 netpbm amd64 2:10.0-15.3build1 [1017 kB]                                                                                                       
Fetched 24.5 MB in 10s (2520 kB/s)                                                                                                                                                                       
Extracting templates from packages: 100%
Preconfiguring packages ...
Selecting previously unselected package fonts-dejavu-core.
(Reading database ... 59618 files and directories currently installed.)
Preparing to unpack .../0-fonts-dejavu-core_2.37-1_all.deb ...
Unpacking fonts-dejavu-core (2.37-1) ...
Selecting previously unselected package fontconfig-config.
Preparing to unpack .../1-fontconfig-config_2.12.6-0ubuntu2_all.deb ...
Unpacking fontconfig-config (2.12.6-0ubuntu2) ...
Selecting previously unselected package libfontconfig1:amd64.
Preparing to unpack .../2-libfontconfig1_2.12.6-0ubuntu2_amd64.deb ...
Unpacking libfontconfig1:amd64 (2.12.6-0ubuntu2) ...
Selecting previously unselected package fontconfig.
Preparing to unpack .../3-fontconfig_2.12.6-0ubuntu2_amd64.deb ...
Unpacking fontconfig (2.12.6-0ubuntu2) ...
Selecting previously unselected package fonts-droid-fallback.
Preparing to unpack .../4-fonts-droid-fallback_1%3a6.0.1r16-1.1_all.deb ...
Unpacking fonts-droid-fallback (1:6.0.1r16-1.1) ...
Selecting previously unselected package libjpeg-turbo8:amd64.
Preparing to unpack .../5-libjpeg-turbo8_1.5.2-0ubuntu5.18.04.1_amd64.deb ...
Unpacking libjpeg-turbo8:amd64 (1.5.2-0ubuntu5.18.04.1) ...
Preparing to unpack .../6-gcc-8-base_8.3.0-6ubuntu1~18.04.1_amd64.deb ...
Unpacking gcc-8-base:amd64 (8.3.0-6ubuntu1~18.04.1) over (8-20180414-1ubuntu2) ...
Setting up gcc-8-base:amd64 (8.3.0-6ubuntu1~18.04.1) ...
(Reading database ... 59783 files and directories currently installed.)
Preparing to unpack .../libstdc++6_8.3.0-6ubuntu1~18.04.1_amd64.deb ...
Unpacking libstdc++6:amd64 (8.3.0-6ubuntu1~18.04.1) over (8-20180414-1ubuntu2) ...
Setting up libstdc++6:amd64 (8.3.0-6ubuntu1~18.04.1) ...
(Reading database ... 59783 files and directories currently installed.)
Preparing to unpack .../libgcc1_1%3a8.3.0-6ubuntu1~18.04.1_amd64.deb ...
Unpacking libgcc1:amd64 (1:8.3.0-6ubuntu1~18.04.1) over (1:8-20180414-1ubuntu2) ...
Setting up libgcc1:amd64 (1:8.3.0-6ubuntu1~18.04.1) ...
Selecting previously unselected package libgomp1:amd64.
(Reading database ... 59783 files and directories currently installed.)
Preparing to unpack .../00-libgomp1_8.3.0-6ubuntu1~18.04.1_amd64.deb ...
Unpacking libgomp1:amd64 (8.3.0-6ubuntu1~18.04.1) ...
Selecting previously unselected package libfftw3-double3:amd64.
Preparing to unpack .../01-libfftw3-double3_3.3.7-1_amd64.deb ...
Unpacking libfftw3-double3:amd64 (3.3.7-1) ...
Selecting previously unselected package libjbig0:amd64.
Preparing to unpack .../02-libjbig0_2.1-3.1build1_amd64.deb ...
Unpacking libjbig0:amd64 (2.1-3.1build1) ...
Selecting previously unselected package libjpeg8:amd64.
Preparing to unpack .../03-libjpeg8_8c-2ubuntu8_amd64.deb ...
Unpacking libjpeg8:amd64 (8c-2ubuntu8) ...
Selecting previously unselected package liblcms2-2:amd64.
Preparing to unpack .../04-liblcms2-2_2.9-1ubuntu0.1_amd64.deb ...
Unpacking liblcms2-2:amd64 (2.9-1ubuntu0.1) ...
Selecting previously unselected package liblqr-1-0:amd64.
Preparing to unpack .../05-liblqr-1-0_0.4.2-2.1_amd64.deb ...
Unpacking liblqr-1-0:amd64 (0.4.2-2.1) ...
Selecting previously unselected package libltdl7:amd64.
Preparing to unpack .../06-libltdl7_2.4.6-2_amd64.deb ...
Unpacking libltdl7:amd64 (2.4.6-2) ...
Selecting previously unselected package libopenjp2-7:amd64.
Preparing to unpack .../07-libopenjp2-7_2.3.0-1_amd64.deb ...
Unpacking libopenjp2-7:amd64 (2.3.0-1) ...
Selecting previously unselected package libtiff5:amd64.
Preparing to unpack .../08-libtiff5_4.0.9-5ubuntu0.2_amd64.deb ...
Unpacking libtiff5:amd64 (4.0.9-5ubuntu0.2) ...
Selecting previously unselected package imagemagick-6-common.
Preparing to unpack .../09-imagemagick-6-common_8%3a6.9.7.4+dfsg-16ubuntu6.9_all.deb ...
Unpacking imagemagick-6-common (8:6.9.7.4+dfsg-16ubuntu6.9) ...
Selecting previously unselected package libmagickcore-6.q16-3:amd64.
Preparing to unpack .../10-libmagickcore-6.q16-3_8%3a6.9.7.4+dfsg-16ubuntu6.9_amd64.deb ...
Unpacking libmagickcore-6.q16-3:amd64 (8:6.9.7.4+dfsg-16ubuntu6.9) ...
Selecting previously unselected package libmagickwand-6.q16-3:amd64.
Preparing to unpack .../11-libmagickwand-6.q16-3_8%3a6.9.7.4+dfsg-16ubuntu6.9_amd64.deb ...
Unpacking libmagickwand-6.q16-3:amd64 (8:6.9.7.4+dfsg-16ubuntu6.9) ...
Selecting previously unselected package poppler-data.
Preparing to unpack .../12-poppler-data_0.4.8-2_all.deb ...
Unpacking poppler-data (0.4.8-2) ...
Selecting previously unselected package fonts-noto-mono.
Preparing to unpack .../13-fonts-noto-mono_20171026-2_all.deb ...
Unpacking fonts-noto-mono (20171026-2) ...
Selecting previously unselected package libavahi-common-data:amd64.
Preparing to unpack .../14-libavahi-common-data_0.7-3.1ubuntu1.2_amd64.deb ...
Unpacking libavahi-common-data:amd64 (0.7-3.1ubuntu1.2) ...
Selecting previously unselected package libavahi-common3:amd64.
Preparing to unpack .../15-libavahi-common3_0.7-3.1ubuntu1.2_amd64.deb ...
Unpacking libavahi-common3:amd64 (0.7-3.1ubuntu1.2) ...
Selecting previously unselected package libavahi-client3:amd64.
Preparing to unpack .../16-libavahi-client3_0.7-3.1ubuntu1.2_amd64.deb ...
Unpacking libavahi-client3:amd64 (0.7-3.1ubuntu1.2) ...
Selecting previously unselected package libcups2:amd64.
Preparing to unpack .../17-libcups2_2.2.7-1ubuntu2.6_amd64.deb ...
Unpacking libcups2:amd64 (2.2.7-1ubuntu2.6) ...
Selecting previously unselected package libcupsimage2:amd64.
Preparing to unpack .../18-libcupsimage2_2.2.7-1ubuntu2.6_amd64.deb ...
Unpacking libcupsimage2:amd64 (2.2.7-1ubuntu2.6) ...
Selecting previously unselected package libijs-0.35:amd64.
Preparing to unpack .../19-libijs-0.35_0.35-13_amd64.deb ...
Unpacking libijs-0.35:amd64 (0.35-13) ...
Selecting previously unselected package libjbig2dec0:amd64.
Preparing to unpack .../20-libjbig2dec0_0.13-6_amd64.deb ...
Unpacking libjbig2dec0:amd64 (0.13-6) ...
Selecting previously unselected package libpaper1:amd64.
Preparing to unpack .../21-libpaper1_1.1.24+nmu5ubuntu1_amd64.deb ...
Unpacking libpaper1:amd64 (1.1.24+nmu5ubuntu1) ...
Selecting previously unselected package libgs9-common.
Preparing to unpack .../22-libgs9-common_9.26~dfsg+0-0ubuntu0.18.04.9_all.deb ...
Unpacking libgs9-common (9.26~dfsg+0-0ubuntu0.18.04.9) ...
Selecting previously unselected package libgs9:amd64.
Preparing to unpack .../23-libgs9_9.26~dfsg+0-0ubuntu0.18.04.9_amd64.deb ...
Unpacking libgs9:amd64 (9.26~dfsg+0-0ubuntu0.18.04.9) ...
Selecting previously unselected package ghostscript.
Preparing to unpack .../24-ghostscript_9.26~dfsg+0-0ubuntu0.18.04.9_amd64.deb ...
Unpacking ghostscript (9.26~dfsg+0-0ubuntu0.18.04.9) ...
Selecting previously unselected package gsfonts.
Preparing to unpack .../25-gsfonts_1%3a8.11+urwcyr1.0.7~pre44-4.4_all.deb ...
Unpacking gsfonts (1:8.11+urwcyr1.0.7~pre44-4.4) ...
Selecting previously unselected package hicolor-icon-theme.
Preparing to unpack .../26-hicolor-icon-theme_0.17-2_all.deb ...
Unpacking hicolor-icon-theme (0.17-2) ...
Selecting previously unselected package imagemagick-6.q16.
Preparing to unpack .../27-imagemagick-6.q16_8%3a6.9.7.4+dfsg-16ubuntu6.9_amd64.deb ...
Unpacking imagemagick-6.q16 (8:6.9.7.4+dfsg-16ubuntu6.9) ...
Selecting previously unselected package libpixman-1-0:amd64.
Preparing to unpack .../28-libpixman-1-0_0.34.0-2_amd64.deb ...
Unpacking libpixman-1-0:amd64 (0.34.0-2) ...
Selecting previously unselected package libxcb-render0:amd64.
Preparing to unpack .../29-libxcb-render0_1.13-2~ubuntu18.04_amd64.deb ...
Unpacking libxcb-render0:amd64 (1.13-2~ubuntu18.04) ...
Selecting previously unselected package libxcb-shm0:amd64.
Preparing to unpack .../30-libxcb-shm0_1.13-2~ubuntu18.04_amd64.deb ...
Unpacking libxcb-shm0:amd64 (1.13-2~ubuntu18.04) ...
Selecting previously unselected package libxrender1:amd64.
Preparing to unpack .../31-libxrender1_1%3a0.9.10-1_amd64.deb ...
Unpacking libxrender1:amd64 (1:0.9.10-1) ...
Selecting previously unselected package libcairo2:amd64.
Preparing to unpack .../32-libcairo2_1.15.10-2ubuntu0.1_amd64.deb ...
Unpacking libcairo2:amd64 (1.15.10-2ubuntu0.1) ...
Selecting previously unselected package libcupsfilters1:amd64.
Preparing to unpack .../33-libcupsfilters1_1.20.2-0ubuntu3.1_amd64.deb ...
Unpacking libcupsfilters1:amd64 (1.20.2-0ubuntu3.1) ...
Selecting previously unselected package libdatrie1:amd64.
Preparing to unpack .../34-libdatrie1_0.2.10-7_amd64.deb ...
Unpacking libdatrie1:amd64 (0.2.10-7) ...
Selecting previously unselected package libdjvulibre-text.
Preparing to unpack .../35-libdjvulibre-text_3.5.27.1-8_all.deb ...
Unpacking libdjvulibre-text (3.5.27.1-8) ...
Selecting previously unselected package libdjvulibre21:amd64.
Preparing to unpack .../36-libdjvulibre21_3.5.27.1-8_amd64.deb ...
Unpacking libdjvulibre21:amd64 (3.5.27.1-8) ...
Selecting previously unselected package libgraphite2-3:amd64.
Preparing to unpack .../37-libgraphite2-3_1.3.11-2_amd64.deb ...
Unpacking libgraphite2-3:amd64 (1.3.11-2) ...
Selecting previously unselected package libharfbuzz0b:amd64.
Preparing to unpack .../38-libharfbuzz0b_1.7.2-1ubuntu1_amd64.deb ...
Unpacking libharfbuzz0b:amd64 (1.7.2-1ubuntu1) ...
Selecting previously unselected package libilmbase12:amd64.
Preparing to unpack .../39-libilmbase12_2.2.0-11ubuntu2_amd64.deb ...
Unpacking libilmbase12:amd64 (2.2.0-11ubuntu2) ...
Selecting previously unselected package libopenexr22:amd64.
Preparing to unpack .../40-libopenexr22_2.2.0-11.1ubuntu1_amd64.deb ...
Unpacking libopenexr22:amd64 (2.2.0-11.1ubuntu1) ...
Selecting previously unselected package libthai-data.
Preparing to unpack .../41-libthai-data_0.1.27-2_all.deb ...
Unpacking libthai-data (0.1.27-2) ...
Selecting previously unselected package libthai0:amd64.
Preparing to unpack .../42-libthai0_0.1.27-2_amd64.deb ...
Unpacking libthai0:amd64 (0.1.27-2) ...
Selecting previously unselected package libpango-1.0-0:amd64.
Preparing to unpack .../43-libpango-1.0-0_1.40.14-1ubuntu0.1_amd64.deb ...
Unpacking libpango-1.0-0:amd64 (1.40.14-1ubuntu0.1) ...
Selecting previously unselected package libpangoft2-1.0-0:amd64.
Preparing to unpack .../44-libpangoft2-1.0-0_1.40.14-1ubuntu0.1_amd64.deb ...
Unpacking libpangoft2-1.0-0:amd64 (1.40.14-1ubuntu0.1) ...
Selecting previously unselected package libpangocairo-1.0-0:amd64.
Preparing to unpack .../45-libpangocairo-1.0-0_1.40.14-1ubuntu0.1_amd64.deb ...
Unpacking libpangocairo-1.0-0:amd64 (1.40.14-1ubuntu0.1) ...
Selecting previously unselected package libwmf0.2-7:amd64.
Preparing to unpack .../46-libwmf0.2-7_0.2.8.4-12_amd64.deb ...
Unpacking libwmf0.2-7:amd64 (0.2.8.4-12) ...
Selecting previously unselected package libmagickcore-6.q16-3-extra:amd64.
Preparing to unpack .../47-libmagickcore-6.q16-3-extra_8%3a6.9.7.4+dfsg-16ubuntu6.9_amd64.deb ...
Unpacking libmagickcore-6.q16-3-extra:amd64 (8:6.9.7.4+dfsg-16ubuntu6.9) ...
Selecting previously unselected package libnetpbm10.
Preparing to unpack .../48-libnetpbm10_2%3a10.0-15.3build1_amd64.deb ...
Unpacking libnetpbm10 (2:10.0-15.3build1) ...
Selecting previously unselected package libpaper-utils.
Preparing to unpack .../49-libpaper-utils_1.1.24+nmu5ubuntu1_amd64.deb ...
Unpacking libpaper-utils (1.1.24+nmu5ubuntu1) ...
Selecting previously unselected package netpbm.
Preparing to unpack .../50-netpbm_2%3a10.0-15.3build1_amd64.deb ...
Unpacking netpbm (2:10.0-15.3build1) ...
Selecting previously unselected package imagemagick.
Preparing to unpack .../51-imagemagick_8%3a6.9.7.4+dfsg-16ubuntu6.9_amd64.deb ...
Unpacking imagemagick (8:6.9.7.4+dfsg-16ubuntu6.9) ...
Setting up libgs9-common (9.26~dfsg+0-0ubuntu0.18.04.9) ...
Setting up libgomp1:amd64 (8.3.0-6ubuntu1~18.04.1) ...
Setting up libpaper1:amd64 (1.1.24+nmu5ubuntu1) ...

Creating config file /etc/papersize with new version
Setting up imagemagick-6-common (8:6.9.7.4+dfsg-16ubuntu6.9) ...
Setting up fonts-droid-fallback (1:6.0.1r16-1.1) ...
Setting up libpaper-utils (1.1.24+nmu5ubuntu1) ...
Setting up libxcb-render0:amd64 (1.13-2~ubuntu18.04) ...
Setting up libopenjp2-7:amd64 (2.3.0-1) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Setting up gsfonts (1:8.11+urwcyr1.0.7~pre44-4.4) ...
Setting up liblcms2-2:amd64 (2.9-1ubuntu0.1) ...
Setting up libjbig0:amd64 (2.1-3.1build1) ...
Setting up fonts-dejavu-core (2.37-1) ...
Setting up poppler-data (0.4.8-2) ...
Setting up libdjvulibre-text (3.5.27.1-8) ...
Setting up libnetpbm10 (2:10.0-15.3build1) ...
Setting up libdatrie1:amd64 (0.2.10-7) ...
Setting up libjpeg-turbo8:amd64 (1.5.2-0ubuntu5.18.04.1) ...
Setting up libfftw3-double3:amd64 (3.3.7-1) ...
Setting up fonts-noto-mono (20171026-2) ...
Setting up libgraphite2-3:amd64 (1.3.11-2) ...
Setting up libilmbase12:amd64 (2.2.0-11ubuntu2) ...
Setting up liblqr-1-0:amd64 (0.4.2-2.1) ...
Setting up libjbig2dec0:amd64 (0.13-6) ...
Setting up libpixman-1-0:amd64 (0.34.0-2) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Setting up libltdl7:amd64 (2.4.6-2) ...
Setting up libijs-0.35:amd64 (0.35-13) ...
Setting up libxcb-shm0:amd64 (1.13-2~ubuntu18.04) ...
Setting up libxrender1:amd64 (1:0.9.10-1) ...
Processing triggers for man-db (2.8.3-2) ...
Setting up libthai-data (0.1.27-2) ...
Setting up hicolor-icon-theme (0.17-2) ...
Setting up libavahi-common-data:amd64 (0.7-3.1ubuntu1.2) ...
Setting up libjpeg8:amd64 (8c-2ubuntu8) ...
Setting up fontconfig-config (2.12.6-0ubuntu2) ...
Setting up libdjvulibre21:amd64 (3.5.27.1-8) ...
Setting up libharfbuzz0b:amd64 (1.7.2-1ubuntu1) ...
Setting up libtiff5:amd64 (4.0.9-5ubuntu0.2) ...
Setting up libthai0:amd64 (0.1.27-2) ...
Setting up libopenexr22:amd64 (2.2.0-11.1ubuntu1) ...
Setting up netpbm (2:10.0-15.3build1) ...
Setting up libavahi-common3:amd64 (0.7-3.1ubuntu1.2) ...
Setting up libwmf0.2-7:amd64 (0.2.8.4-12) ...
Setting up libfontconfig1:amd64 (2.12.6-0ubuntu2) ...
Setting up libmagickcore-6.q16-3:amd64 (8:6.9.7.4+dfsg-16ubuntu6.9) ...
Setting up libmagickwand-6.q16-3:amd64 (8:6.9.7.4+dfsg-16ubuntu6.9) ...
Setting up libavahi-client3:amd64 (0.7-3.1ubuntu1.2) ...
Setting up fontconfig (2.12.6-0ubuntu2) ...
Regenerating fonts cache... done.
Setting up libcups2:amd64 (2.2.7-1ubuntu2.6) ...
Setting up libcairo2:amd64 (1.15.10-2ubuntu0.1) ...
Setting up imagemagick-6.q16 (8:6.9.7.4+dfsg-16ubuntu6.9) ...
update-alternatives: using /usr/bin/compare-im6.q16 to provide /usr/bin/compare (compare) in auto mode
update-alternatives: using /usr/bin/compare-im6.q16 to provide /usr/bin/compare-im6 (compare-im6) in auto mode
update-alternatives: using /usr/bin/animate-im6.q16 to provide /usr/bin/animate (animate) in auto mode
update-alternatives: using /usr/bin/animate-im6.q16 to provide /usr/bin/animate-im6 (animate-im6) in auto mode
update-alternatives: using /usr/bin/convert-im6.q16 to provide /usr/bin/convert (convert) in auto mode
update-alternatives: using /usr/bin/convert-im6.q16 to provide /usr/bin/convert-im6 (convert-im6) in auto mode
update-alternatives: using /usr/bin/composite-im6.q16 to provide /usr/bin/composite (composite) in auto mode
update-alternatives: using /usr/bin/composite-im6.q16 to provide /usr/bin/composite-im6 (composite-im6) in auto mode
update-alternatives: using /usr/bin/conjure-im6.q16 to provide /usr/bin/conjure (conjure) in auto mode
update-alternatives: using /usr/bin/conjure-im6.q16 to provide /usr/bin/conjure-im6 (conjure-im6) in auto mode
update-alternatives: using /usr/bin/import-im6.q16 to provide /usr/bin/import (import) in auto mode
update-alternatives: using /usr/bin/import-im6.q16 to provide /usr/bin/import-im6 (import-im6) in auto mode
update-alternatives: using /usr/bin/identify-im6.q16 to provide /usr/bin/identify (identify) in auto mode
update-alternatives: using /usr/bin/identify-im6.q16 to provide /usr/bin/identify-im6 (identify-im6) in auto mode
update-alternatives: using /usr/bin/stream-im6.q16 to provide /usr/bin/stream (stream) in auto mode
update-alternatives: using /usr/bin/stream-im6.q16 to provide /usr/bin/stream-im6 (stream-im6) in auto mode
update-alternatives: using /usr/bin/display-im6.q16 to provide /usr/bin/display (display) in auto mode
update-alternatives: using /usr/bin/display-im6.q16 to provide /usr/bin/display-im6 (display-im6) in auto mode
update-alternatives: using /usr/bin/montage-im6.q16 to provide /usr/bin/montage (montage) in auto mode
update-alternatives: using /usr/bin/montage-im6.q16 to provide /usr/bin/montage-im6 (montage-im6) in auto mode
update-alternatives: using /usr/bin/mogrify-im6.q16 to provide /usr/bin/mogrify (mogrify) in auto mode
update-alternatives: using /usr/bin/mogrify-im6.q16 to provide /usr/bin/mogrify-im6 (mogrify-im6) in auto mode
Setting up libcupsfilters1:amd64 (1.20.2-0ubuntu3.1) ...
Setting up libcupsimage2:amd64 (2.2.7-1ubuntu2.6) ...
Setting up libpango-1.0-0:amd64 (1.40.14-1ubuntu0.1) ...
Setting up imagemagick (8:6.9.7.4+dfsg-16ubuntu6.9) ...
Setting up libgs9:amd64 (9.26~dfsg+0-0ubuntu0.18.04.9) ...
Setting up ghostscript (9.26~dfsg+0-0ubuntu0.18.04.9) ...
Setting up libpangoft2-1.0-0:amd64 (1.40.14-1ubuntu0.1) ...
Setting up libpangocairo-1.0-0:amd64 (1.40.14-1ubuntu0.1) ...
Setting up libmagickcore-6.q16-3-extra:amd64 (8:6.9.7.4+dfsg-16ubuntu6.9) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...

vagrant@ubuntu-bionic:~$ convert --version
Version: ImageMagick 6.9.7-4 Q16 x86_64 20170114 http://www.imagemagick.org
Copyright: © 1999-2017 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Features: Cipher DPC Modules OpenMP 
Delegates (built-in): bzlib djvu fftw fontconfig freetype jbig jng jp2 jpeg lcms lqr ltdl lzma openexr pangocairo png tiff wmf x xml zlib

vagrant@ubuntu-bionic:~$ convert -list format | grep -i JP2
      J2C* JP2       rw-   JPEG-2000 Code Stream Syntax (2.3.0)
      J2K* JP2       rw-   JPEG-2000 Code Stream Syntax (2.3.0)
      JP2* JP2       rw-   JPEG-2000 File Format Syntax (2.3.0)
      JPC* JP2       rw-   JPEG-2000 Code Stream Syntax (2.3.0)
      JPM* JP2       rw-   JPEG-2000 Code Stream Syntax (2.3.0)
      JPT* JP2       rw-   JPEG-2000 File Format Syntax (2.3.0)

vagrant@ubuntu-bionic:~$ wget https://palosverdeshistory.org/islandora/object/pvld%3A3367/datastream/OBJ/view -o test.jp2

vagrant@ubuntu-bionic:~$ identify test.jp2 
identify-im6.q16: Malformed JP2 file format: first box must be JPEG 2000 signature box
 `OpenJP2' @ error/jp2.c/JP2ErrorHandler/193.
identify-im6.q16: unable to decode image file `test.jp2' @ error/jp2.c/ReadJP2Image/351.

vagrant@ubuntu-bionic:~$ convert test.jp2 output.tiff
convert-im6.q16: Malformed JP2 file format: first box must be JPEG 2000 signature box
 `OpenJP2' @ error/jp2.c/JP2ErrorHandler/193.
convert-im6.q16: unable to decode image file `test.jp2' @ error/jp2.c/ReadJP2Image/351.
convert-im6.q16: no images defined `output.tiff' @ error/convert.c/ConvertImageCommand/3258.

vagrant@ubuntu-bionic:~$ 

I did a vagrant box update just to double check:

vagrant@ubuntu-bionic:~$ convert --version
Version: ImageMagick 6.9.7-4 Q16 x86_64 20170114 http://www.imagemagick.org
Copyright: © 1999-2017 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Features: Cipher DPC Modules OpenMP 
Delegates (built-in): bzlib djvu fftw fontconfig freetype jbig jng jp2 jpeg lcms lqr ltdl lzma openexr pangocairo png tiff wmf x xml zlib
vagrant@ubuntu-bionic:~$ wget https://palosverdeshistory.org/islandora/object/pvld%3A3367/datastream/OBJ/view -o test.jp2
vagrant@ubuntu-bionic:~$ identify test.jp2 
identify-im6.q16: Malformed JP2 file format: first box must be JPEG 2000 signature box
 `OpenJP2' @ error/jp2.c/JP2ErrorHandler/193.
identify-im6.q16: unable to decode image file `test.jp2' @ error/jp2.c/ReadJP2Image/351.
vagrant@ubuntu-bionic:~$ convert test.jp2 output.tiff
convert-im6.q16: Malformed JP2 file format: first box must be JPEG 2000 signature box
 `OpenJP2' @ error/jp2.c/JP2ErrorHandler/193.
convert-im6.q16: unable to decode image file `test.jp2' @ error/jp2.c/ReadJP2Image/351.
convert-im6.q16: no images defined `output.tiff' @ error/convert.c/ConvertImageCommand/3258.

Still the same. 😢

@seth-shaw-unlv @dannylamb or anybody else mind doing doing @jonathangreen's sanity test when you have some time?

@jonathangreen
Copy link
Contributor

jonathangreen commented Jul 19, 2019

@ruebot I for sure screwed up copy/pasting that wget command.

wget https://palosverdeshistory.org/islandora/object/pvld%3A3367/datastream/OBJ/view -O test.jp2

Note the big O in -O. I messed that up the first time and I must have copy pasted the wrong one from history. -o puts the wget download information in that file, so convert has no idea what its looking at. I edited it in my message above in case anyone else is following along.

@ruebot
Copy link
Member

ruebot commented Jul 19, 2019

🤦‍♂️ I should have caught that too!

Good news!

IT WORKS.

vagrant@ubuntu-bionic:~$ identify test.jp2
test.jp2 JP2 1886x2586 1886x2586+0+0 16-bit sRGB 309KB 0.000u 0:00.000

vagrant@ubuntu-bionic:~$ convert test.jp2 output.tiff

vagrant@ubuntu-bionic:~$ wget https://www.dropbox.com/s/5uygip54ho6xu15/yul_99144_OBJ_Datastream.tiff

vagrant@ubuntu-bionic:~$ convert yul_99144_OBJ_Datastream.tiff test_york.jp2

vagrant@ubuntu-bionic:~$ ls -lash test_york-0.jp2 test_york-1.jp2 output.tiff test.jp2 
 28M -rw-rw-r-- 1 vagrant vagrant  28M Jul 19 21:59 output.tiff
304K -rw-rw-r-- 1 vagrant vagrant 303K Mar 27  2017 test.jp2
5.3M -rw-rw-r-- 1 vagrant vagrant 5.3M Jul 19 22:00 test_york-0.jp2
836K -rw-rw-r-- 1 vagrant vagrant 834K Jul 19 22:00 test_york-1.jp2

🤘 🤘

...and I just realized were the -0 and -1 filename append is coming from. That's a multi-paged tiff.

So, the 18.04 ppa I did is totally fine, and I have a gremlin somewhere, or we have a gremlin somewhere in the claw vagrant build.

dannylamb pushed a commit to Islandora-Devops/islandora-playbook that referenced this issue Aug 9, 2019
* Update to 18.04

- Update Vagrantfile to use 18.04 for Ubuntu builds
- Tweak package names, and required packages for 18.04
- Updates to get rid of some deprecation warnings
- Addresses Islandora/documentation#848
- Requires islandora-deprecated/ansible-role-grok#6

* Update README and remove some cruft per @Natkeeran's review.

* use ansible-role-grok 2.0.0

* review

* cut more
@ruebot
Copy link
Member

ruebot commented Aug 9, 2019

whikloj pushed a commit to whikloj/claw-playbook that referenced this issue Dec 18, 2019
* Update to 18.04

- Update Vagrantfile to use 18.04 for Ubuntu builds
- Tweak package names, and required packages for 18.04
- Updates to get rid of some deprecation warnings
- Addresses Islandora/documentation#848
- Requires islandora-deprecated/ansible-role-grok#6

* Update README and remove some cruft per @Natkeeran's review.

* use ansible-role-grok 2.0.0

* review

* cut more
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants