ratchet:/home/robin/_images# apt-get install php5-gd Reading package lists... Done Building dependency tree... Done The following extra packages will be installed: fontconfig-config libfontconfig1 libgd2-xpm Suggested packages: libgd-tools The following NEW packages will be installed: fontconfig-config libfontconfig1 libgd2-xpm php5-gd 0 upgraded, 4 newly installed, 0 to remove and 102 not upgraded. 2 not fully installed or removed. Need to get 605kB of archives. After unpacking 1556kB of additional disk space will be used. Do you want to continue [Y/n]? Y Get:1 http://debian.uchicago.edu etch/main fontconfig-config 2.4.2-1.2 [149kB] Get:2 http://security.debian.org etch/updates/main php5-gd 5.2.0-8+etch4 [37.0kB] Get:3 http://debian.uchicago.edu etch/main libfontconfig1 2.4.2-1.2 [215kB] Get:4 http://debian.uchicago.edu etch/main libgd2-xpm 2.0.33-5.2 [203kB] Fetched 605kB in 1s (477kB/s) Preconfiguring packages ... Selecting previously deselected package fontconfig-config. (Reading database ... 49899 files and directories currently installed.) Unpacking fontconfig-config (from .../fontconfig-config_2.4.2-1.2_all.deb) ... Selecting previously deselected package libfontconfig1. Unpacking libfontconfig1 (from .../libfontconfig1_2.4.2-1.2_amd64.deb) ... Selecting previously deselected package libgd2-xpm. Unpacking libgd2-xpm (from .../libgd2-xpm_2.0.33-5.2_amd64.deb) ... Selecting previously deselected package php5-gd. Unpacking php5-gd (from .../php5-gd_5.2.0-8+etch4_amd64.deb) ... Setting up apache (1.3.34-4.1) ... /usr/bin/ucf: line 330: getopt: command not found dpkg: error processing apache (--configure): subprocess post-installation script returned error exit status 127 Setting up php5-cli (5.2.0-8+etch4) ... /usr/bin/ucf: line 330: getopt: command not found dpkg: error processing php5-cli (--configure): subprocess post-installation script returned error exit status 127 Setting up fontconfig-config (2.4.2-1.2) ... Setting up libfontconfig1 (2.4.2-1.2) ... Setting up libgd2-xpm (2.0.33-5.2) ... Setting up php5-gd (5.2.0-8+etch4) ... Errors were encountered while processing: apache php5-cli E: Sub-process /usr/bin/dpkg returned an error code (1)