liviusbr
September 3rd, 2013, 09:24 AM
Hi All,
I am trying to make a dist upgrade by command line and I am getting the following error :
root@SPB-MMH:/usr/bin# apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following NEW packages will be installed:
linux-headers-3.0.0-32 linux-headers-3.0.0-32-server
The following packages will be upgraded:
accountsservice apache2-mpm-worker apache2-utils apache2.2-bin apache2.2-common apparmor apport apt apt-transport-https apt-utils bind9-host bzip2 command-not-found command-not-found-data dbus dnsutils dpkg gnupg gpgv grub-common
gzip ifupdown initramfs-tools initramfs-tools-bin initscripts insserv isc-dhcp-client isc-dhcp-common iso-codes landscape-common language-pack-en language-pack-en-base language-selector-common libaccountsservice0 libapt-inst1.3
libapt-pkg4.11 libbind9-60 libbz2-1.0 libcurl3-gnutls libdbus-1-3 libdbus-glib-1-2 libdns69 libfreetype6 libgc1c2 libisc62 libisccc60 libisccfg62 libjs-jquery liblwres60 libncurses5 libncursesw5 libpam-modules libpam-modules-bin
libpam-runtime libpam0g libpng12-0 libpython2.7 libtinfo5 libudev0 libxml2 linux-firmware linux-headers-server mawk multiarch-support ncurses-base ncurses-bin openssl perl perl-base python-apport python-crypto python-gobject
python-gobject-cairo python-httplib2 python-keyring python-launchpadlib python-pam python-pkg-resources python-problem-report python2.7 python2.7-minimal sudo sysv-rc sysvinit-utils tzdata ubuntu-minimal ubuntu-standard udev
update-manager-core upstart vim vim-common vim-runtime vim-tiny
94 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
5 not fully installed or removed.
Need to get 0 B/79.0 MB of archives.
After this operation, 102 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Extracting templates from packages: 100%
Preconfiguring packages ...
(Reading database ... 47222 files and directories currently installed.)
Preparing to replace apache2-mpm-worker 2.2.20-1ubuntu1.3 (using .../apache2-mpm-worker_2.2.20-1ubuntu1.4_amd64.deb) ...
Unpacking replacement apache2-mpm-worker ...
dpkg: error processing /var/cache/apt/archives/apache2-mpm-worker_2.2.20-1ubuntu1.4_amd64.deb (--unpack):
error creating symbolic link `./usr/sbin/apache2': Permission denied
Preparing to replace apache2.2-common 2.2.20-1ubuntu1.3 (using .../apache2.2-common_2.2.20-1ubuntu1.4_amd64.deb) ...
Unpacking replacement apache2.2-common ...
dpkg: error processing /var/cache/apt/archives/apache2.2-common_2.2.20-1ubuntu1.4_amd64.deb (--unpack):
unable to create `/usr/sbin/a2enmod.dpkg-new' (while processing `./usr/sbin/a2enmod'): Permission denied
Preparing to replace apache2.2-bin 2.2.20-1ubuntu1.3 (using .../apache2.2-bin_2.2.20-1ubuntu1.4_amd64.deb) ...
Unpacking replacement apache2.2-bin ...
dpkg: error processing /var/cache/apt/archives/apache2.2-bin_2.2.20-1ubuntu1.4_amd64.deb (--unpack):
unable to create `/usr/sbin/httxt2dbm.dpkg-new' (while processing `./usr/sbin/httxt2dbm'): Permission denied
Preparing to replace apache2-utils 2.2.20-1ubuntu1.2 (using .../apache2-utils_2.2.20-1ubuntu1.4_amd64.deb) ...
Unpacking replacement apache2-utils ...
dpkg: error processing /var/cache/apt/archives/apache2-utils_2.2.20-1ubuntu1.4_amd64.deb (--unpack):
unable to create `/usr/sbin/rotatelogs.dpkg-new' (while processing `./usr/sbin/rotatelogs'): Permission denied
No apport report written because MaxReports is reached already
Preparing to replace perl 5.12.4-4 (using .../perl_5.12.4-4ubuntu0.2_amd64.deb) ...
Unpacking replacement perl ...
dpkg: error processing /var/cache/apt/archives/perl_5.12.4-4ubuntu0.2_amd64.deb (--unpack):
unable to create `/usr/bin/cpanp.dpkg-new' (while processing `./usr/bin/cpanp'): Permission denied
No apport report written because MaxReports is reached already
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Preparing to replace perl-base 5.12.4-4 (using .../perl-base_5.12.4-4ubuntu0.2_amd64.deb) ...
Unpacking replacement perl-base ...
dpkg: error processing /var/cache/apt/archives/perl-base_5.12.4-4ubuntu0.2_amd64.deb (--unpack):
unable to create `/usr/bin/perl.dpkg-new' (while processing `./usr/bin/perl'): Permission denied
No apport report written because MaxReports is reached already
Processing triggers for ufw ...
WARN: /etc is group writable!
WARN: /usr is world writable!
WARN: /usr is group writable!
Processing triggers for ureadahead ...
Processing triggers for man-db ...
Errors were encountered while processing:
/var/cache/apt/archives/apache2-mpm-worker_2.2.20-1ubuntu1.4_amd64.deb
/var/cache/apt/archives/apache2.2-common_2.2.20-1ubuntu1.4_amd64.deb
/var/cache/apt/archives/apache2.2-bin_2.2.20-1ubuntu1.4_amd64.deb
/var/cache/apt/archives/apache2-utils_2.2.20-1ubuntu1.4_amd64.deb
/var/cache/apt/archives/perl_5.12.4-4ubuntu0.2_amd64.deb
/var/cache/apt/archives/perl-base_5.12.4-4ubuntu0.2_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Any idea ?
I am trying to make a dist upgrade by command line and I am getting the following error :
root@SPB-MMH:/usr/bin# apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following NEW packages will be installed:
linux-headers-3.0.0-32 linux-headers-3.0.0-32-server
The following packages will be upgraded:
accountsservice apache2-mpm-worker apache2-utils apache2.2-bin apache2.2-common apparmor apport apt apt-transport-https apt-utils bind9-host bzip2 command-not-found command-not-found-data dbus dnsutils dpkg gnupg gpgv grub-common
gzip ifupdown initramfs-tools initramfs-tools-bin initscripts insserv isc-dhcp-client isc-dhcp-common iso-codes landscape-common language-pack-en language-pack-en-base language-selector-common libaccountsservice0 libapt-inst1.3
libapt-pkg4.11 libbind9-60 libbz2-1.0 libcurl3-gnutls libdbus-1-3 libdbus-glib-1-2 libdns69 libfreetype6 libgc1c2 libisc62 libisccc60 libisccfg62 libjs-jquery liblwres60 libncurses5 libncursesw5 libpam-modules libpam-modules-bin
libpam-runtime libpam0g libpng12-0 libpython2.7 libtinfo5 libudev0 libxml2 linux-firmware linux-headers-server mawk multiarch-support ncurses-base ncurses-bin openssl perl perl-base python-apport python-crypto python-gobject
python-gobject-cairo python-httplib2 python-keyring python-launchpadlib python-pam python-pkg-resources python-problem-report python2.7 python2.7-minimal sudo sysv-rc sysvinit-utils tzdata ubuntu-minimal ubuntu-standard udev
update-manager-core upstart vim vim-common vim-runtime vim-tiny
94 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
5 not fully installed or removed.
Need to get 0 B/79.0 MB of archives.
After this operation, 102 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Extracting templates from packages: 100%
Preconfiguring packages ...
(Reading database ... 47222 files and directories currently installed.)
Preparing to replace apache2-mpm-worker 2.2.20-1ubuntu1.3 (using .../apache2-mpm-worker_2.2.20-1ubuntu1.4_amd64.deb) ...
Unpacking replacement apache2-mpm-worker ...
dpkg: error processing /var/cache/apt/archives/apache2-mpm-worker_2.2.20-1ubuntu1.4_amd64.deb (--unpack):
error creating symbolic link `./usr/sbin/apache2': Permission denied
Preparing to replace apache2.2-common 2.2.20-1ubuntu1.3 (using .../apache2.2-common_2.2.20-1ubuntu1.4_amd64.deb) ...
Unpacking replacement apache2.2-common ...
dpkg: error processing /var/cache/apt/archives/apache2.2-common_2.2.20-1ubuntu1.4_amd64.deb (--unpack):
unable to create `/usr/sbin/a2enmod.dpkg-new' (while processing `./usr/sbin/a2enmod'): Permission denied
Preparing to replace apache2.2-bin 2.2.20-1ubuntu1.3 (using .../apache2.2-bin_2.2.20-1ubuntu1.4_amd64.deb) ...
Unpacking replacement apache2.2-bin ...
dpkg: error processing /var/cache/apt/archives/apache2.2-bin_2.2.20-1ubuntu1.4_amd64.deb (--unpack):
unable to create `/usr/sbin/httxt2dbm.dpkg-new' (while processing `./usr/sbin/httxt2dbm'): Permission denied
Preparing to replace apache2-utils 2.2.20-1ubuntu1.2 (using .../apache2-utils_2.2.20-1ubuntu1.4_amd64.deb) ...
Unpacking replacement apache2-utils ...
dpkg: error processing /var/cache/apt/archives/apache2-utils_2.2.20-1ubuntu1.4_amd64.deb (--unpack):
unable to create `/usr/sbin/rotatelogs.dpkg-new' (while processing `./usr/sbin/rotatelogs'): Permission denied
No apport report written because MaxReports is reached already
Preparing to replace perl 5.12.4-4 (using .../perl_5.12.4-4ubuntu0.2_amd64.deb) ...
Unpacking replacement perl ...
dpkg: error processing /var/cache/apt/archives/perl_5.12.4-4ubuntu0.2_amd64.deb (--unpack):
unable to create `/usr/bin/cpanp.dpkg-new' (while processing `./usr/bin/cpanp'): Permission denied
No apport report written because MaxReports is reached already
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Preparing to replace perl-base 5.12.4-4 (using .../perl-base_5.12.4-4ubuntu0.2_amd64.deb) ...
Unpacking replacement perl-base ...
dpkg: error processing /var/cache/apt/archives/perl-base_5.12.4-4ubuntu0.2_amd64.deb (--unpack):
unable to create `/usr/bin/perl.dpkg-new' (while processing `./usr/bin/perl'): Permission denied
No apport report written because MaxReports is reached already
Processing triggers for ufw ...
WARN: /etc is group writable!
WARN: /usr is world writable!
WARN: /usr is group writable!
Processing triggers for ureadahead ...
Processing triggers for man-db ...
Errors were encountered while processing:
/var/cache/apt/archives/apache2-mpm-worker_2.2.20-1ubuntu1.4_amd64.deb
/var/cache/apt/archives/apache2.2-common_2.2.20-1ubuntu1.4_amd64.deb
/var/cache/apt/archives/apache2.2-bin_2.2.20-1ubuntu1.4_amd64.deb
/var/cache/apt/archives/apache2-utils_2.2.20-1ubuntu1.4_amd64.deb
/var/cache/apt/archives/perl_5.12.4-4ubuntu0.2_amd64.deb
/var/cache/apt/archives/perl-base_5.12.4-4ubuntu0.2_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Any idea ?