Mengatasi Error: dpkg-deb: error: subprocess paste was killed by signal (Broken pipe) pada Ubuntu
Jika kita mengalami
- Jalankan perintah dibawah untuk memperbaiki error.
- Perhatikan keluaran sebelumnya. Carilah nama paket yang menyebabkan error, terletak setelah kata
which is also in package , seperti yang saya tandai merah. Disini kita mendapatkan dua paket yang menyebabkan error. Sekarang kita akan menghapus kedua paket tersebut. - Kemudian kita ulangi langkah pertama.
- Dari perintah diatas ternyata kita mendapatkan lagi sebuah paket yang menyebabkan error. Kita akan menghapus paket tersebut seperti pada langkah kedua.
- Kemudian kita ulangi langkah pertama.
sudo apt-get install -f
Maka muncul keluaran seperti dibawah, perhatikan yang diberi warna hijau.
Reading package lists... Done Building dependency tree Reading state information... Done Correcting dependencies... Done The following packages were automatically installed and are no longer required: libntdb1 libsidplayfp Use 'apt-get autoremove' to remove them. The following extra packages will be installed: codeblocks-contrib codeblocks-dev Recommended packages: valgrind The following packages will be upgraded: codeblocks-contrib codeblocks-dev 2 upgraded, 0 newly installed, 0 to remove and 9 not upgraded. 15 not fully installed or removed. Need to get 3.273 kB of archives. After this operation, 1.711 kB of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 http://id.archive.ubuntu.com/ubuntu/ trusty/universe codeblocks-dev i386 13.12-3 [350 kB] Get:2 http://id.archive.ubuntu.com/ubuntu/ trusty/universe codeblocks-contrib i386 13.12-3 [2.922 kB] Fetched 3.273 kB in 29s (112 kB/s) (Reading database ... 177433 files and directories currently installed.) Preparing to unpack .../codeblocks-dev_13.12-3_i386.deb ... Unpacking codeblocks-dev (13.12-3) over (12.11-1) ... dpkg: error processing archive /var/cache/apt/archives/codeblocks-dev_13.12-3_i386.deb (--unpack): trying to overwrite '/usr/include/codeblocks/wxContribItems/wxFlatNotebook/include/wx/wxFlatNotebook/wxFlatNotebook.h', which is also in package codeblocks-wxcontrib-headers 12.11-1 dpkg-deb: error: subprocess paste was killed by signal (Broken pipe) Preparing to unpack .../codeblocks-contrib_13.12-3_i386.deb ... Unpacking codeblocks-contrib (13.12-3) over (12.11-1) ... dpkg: error processing archive /var/cache/apt/archives/codeblocks-contrib_13.12-3_i386.deb (--unpack): trying to overwrite '/usr/share/codeblocks/ToolsPlus.zip', which is also in package codeblocks-contrib-common 12.11-1 dpkg-deb: error: subprocess paste was killed by signal (Broken pipe) E: Sub-process /usr/bin/dpkg returned an error code (1)
sudo dpkg -P codeblocks-contrib-common codeblocks-wxcontrib-headers
Jika berhasil muncul keluaran seperti dibawah.
(Reading database ... 177433 files and directories currently installed.) Removing codeblocks-contrib-common (12.11-1) ... Removing codeblocks-wxcontrib-headers (12.11-1) ... Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
sudo apt-get install -f
Muncul pesan seperti berikut:
Reading package lists... Done Building dependency tree Reading state information... Done Correcting dependencies... Done The following packages were automatically installed and are no longer required: libntdb1 libsidplayfp Use 'apt-get autoremove' to remove them. The following extra packages will be installed: codeblocks-contrib codeblocks-dev Recommended packages: valgrind The following packages will be upgraded: codeblocks-contrib codeblocks-dev 2 upgraded, 0 newly installed, 0 to remove and 9 not upgraded. 14 not fully installed or removed. Need to get 0 B/3.273 kB of archives. After this operation, 1.711 kB of additional disk space will be used. Do you want to continue? [Y/n] y (Reading database ... 176929 files and directories currently installed.) Preparing to unpack .../codeblocks-dev_13.12-3_i386.deb ... Unpacking codeblocks-dev (13.12-3) over (12.11-1) ... Preparing to unpack .../codeblocks-contrib_13.12-3_i386.deb ... Unpacking codeblocks-contrib (13.12-3) over (12.11-1) ... dpkg: error processing archive /var/cache/apt/archives/codeblocks-contrib_13.12-3_i386.deb (--unpack): trying to overwrite '/usr/lib/codeblocks/wxContribItems/libwxchartctrl.so.0.0.1', which is also in package codeblocks-libwxcontrib0 12.11-1 dpkg-deb: error: subprocess paste was killed by signal (Broken pipe) Processing triggers for man-db (2.6.7.1-1ubuntu1) ... Errors were encountered while processing: /var/cache/apt/archives/codeblocks-contrib_13.12-3_i386.deb E: Sub-process /usr/bin/dpkg returned an error code (1)
sudo dpkg -P codeblocks-libwxcontrib0
Jika berhasil muncul pesan seperti berikut:
(Reading database ... 177207 files and directories currently installed.) Removing codeblocks-libwxcontrib0 (12.11-1) ... Purging configuration files for codeblocks-libwxcontrib0 (12.11-1) ... Processing triggers for libc-bin (2.19-0ubuntu6.9) ...
sudo apt-get install -f
Muncul tampilan seperti dibawah.
Reading package lists... Done Building dependency tree Reading state information... Done Correcting dependencies... Done The following packages were automatically installed and are no longer required: libntdb1 libsidplayfp Use 'apt-get autoremove' to remove them. The following extra packages will be installed: codeblocks-contrib Recommended packages: valgrind The following packages will be REMOVED: codeblocks-wxcontrib-dev The following packages will be upgraded: codeblocks-contrib 1 upgraded, 0 newly installed, 1 to remove and 9 not upgraded. 13 not fully installed or removed. Need to get 0 B/2.922 kB of archives. After this operation, 508 kB disk space will be freed. Do you want to continue? [Y/n] y (Reading database ... 177182 files and directories currently installed.) Removing codeblocks-wxcontrib-dev (12.11-1) ... (Reading database ... 177154 files and directories currently installed.) Preparing to unpack .../codeblocks-contrib_13.12-3_i386.deb ... Unpacking codeblocks-contrib (13.12-3) over (12.11-1) ... Processing triggers for man-db (2.6.7.1-1ubuntu1) ... Setting up libwxbase2.8-0:i386 (2.8.12.1+dfsg-2ubuntu2) ... Setting up libwxgtk2.8-0:i386 (2.8.12.1+dfsg-2ubuntu2) ... Setting up libcodeblocks0 (13.12-3) ... Setting up codeblocks-common (13.12-3) ... Setting up codeblocks (13.12-3) ... Setting up libwxsmithlib0 (13.12-3) ... Setting up codeblocks-dev (13.12-3) ... Setting up libwxsmithlib-dev (13.12-3) ... Setting up libwxsmithlib0-dev (13.12-3) ... Setting up gamin (0.1.10-4.1ubuntu1) ... Setting up libgamin0 (0.1.10-4.1ubuntu1) ... Setting up codeblocks-contrib (13.12-3) ... Processing triggers for libc-bin (2.19-0ubuntu6.9) ...
Seperti terlihat pada pesan diatas, kini sudah tidak ada lagi error yang berarti masalah telah selesai.
terima kasih banyak. aku cari cari cara untuk memperbaiki itu akhirnya ketemu. aku hampir mau nyoba mereinstall ubuntu.
ReplyDeletebermanfaat
meskipun udah dari tahun 2017 tapi masih bisa di pake
Deleteterima kasih banyak, di 2021 saja masih sangat membantuu
ReplyDeletethank youuuu soooo much 😘
ReplyDelete