Forum Thread: Issue with Kali-Rolling Usb Update && Upgrade && Dist-Upgrade

Issue with Kali-Rolling Usb Update && Upgrade && Dist-Upgrade

Installed Kali-rolling 32bit in USB drive as per https://null-byte.wonderhowto.com/how-to/install-kali-live-usb-drive-with-persistence-optional-0162253/ with persistence. And reboot into "live Kali persistence". Here, find everything fine except do not see any drive in the desktop named "persistence" (only see that drive when boot into "kali live" ).

Then try to recheck the sources. list while in the persistence boot, and then,

apt-get update ..... it was all done without any error/issue.

then apt-get upgrade... took hours of time and showed one error in the end ;
"you might want to run 'apt-get -f install' to correct this,
The following packages have unmet dependencies:
john: Depends: john-data (= 1.8.0.6-jumbo-1-10kali8) but 1.8.0.6-jumbo-1-0kali7 is installed
E: unmet dependencies. Try using -f."
when try "apt-get -f install"

shows :

dpkg-deb: error: subprocess paste was killed by signal (broken pipe)
Errors were encountered while processing:
/var/cche/apt/archives/john-data1.8.0.6-jumbo-1-0Kali8all.bed
E: Sub-process /user/bin/dpkg returned an error code(1)

Next again when run apt-get upgrade, same error shows and suggest to run "apt-get -f install". some file were updated and in the end some were unable showing the similar dependency issue. then i just reboot the system and ooops!! i cant log into GUI interface from persistence mood. at the startup the login window appears asking for username and password and after providing it take a little time.. try to go into desktop and fail and return to the same login window. I try "ctrl+Alt+F3" and its the command interface, i tried to do different things from here like installing snort and unable asking for update. Then i reboot and i can log in from live mood and and try to see the updating errors and run the update and upgrade command and it gives the following errors in the end:

Preparing to unpack .../locales-all2.21-9i386.deb ...
Unpacking locales-all (2.21-9) over (2.21-6) ...
dpkg: error processing archive /var/cache/apt/archives/locales-all2.21-9i386.deb (--unpack):

unable to make backup link of './usr/lib/locale/svSE.iso885915/LCIDENTIFICATION' before installing new version: No space left on device

dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Preparing to unpack .../locales2.21-9all.deb ...
Unpacking locales (2.21-9) over (2.21-6) ...
Preparing to unpack .../manpages4.04-2all.deb ...
Unpacking manpages (4.04-2) over (4.04-0.1) ...
Preparing to unpack .../ncurses-term6.0+20160213-1all.deb ...
Unpacking ncurses-term (6.0+20160213-1) over (6.0+20151024-2) ...
Preparing to unpack .../openssh-sftp-server1%3a7.1p2-2i386.deb ...
Unpacking openssh-sftp-server (1:7.1p2-2) over (1:7.1p2-1) ...
Preparing to unpack .../openssh-server1%3a7.1p2-2i386.deb ...
Unpacking openssh-server (1:7.1p2-2) over (1:7.1p2-1) ...
Preparing to unpack .../openssh-client1%3a7.1p2-2i386.deb ...
Unpacking openssh-client (1:7.1p2-2) over (1:7.1p2-1) ...
Preparing to unpack .../archives/ucf3.0035all.deb ...
Unpacking ucf (3.0035) over (3.0031) ...
Preparing to unpack .../libnl-genl-3-2003.2.27-1i386.deb ...
Unpacking libnl-genl-3-200:i386 (3.2.27-1) over (3.2.26-1) ...
Preparing to unpack .../libnl-route-3-2003.2.27-1i386.deb ...
Unpacking libnl-route-3-200:i386 (3.2.27-1) over (3.2.26-1) ...
Preparing to unpack .../libnl-3-2003.2.27-1i386.deb ...
Unpacking libnl-3-200:i386 (3.2.27-1) over (3.2.26-1) ...
Preparing to unpack .../aircrack-ng1%3a1.2-0~rc4-0kali3i386.deb ...
Unpacking aircrack-ng (1:1.2-0~rc4-0kali3) over (1:1.2-0~rc3-0kali1) ...
dpkg: error processing archive /var/cache/apt/archives/aircrack-ng1%3a1.2-0~rc4-0kali3i386.deb (--unpack):

cannot copy extracted data for './usr/sbin/airodump-ng' to '/usr/sbin/airodump-ng.dpkg-new': failed to write (No space left on device)

dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Preparing to unpack .../libatspi2.0-02.18.3-4i386.deb ...
Unpacking libatspi2.0-0:i386 (2.18.3-4) over (2.18.3-3) ...
Preparing to unpack .../at-spi2-core2.18.3-4i386.deb ...
Unpacking at-spi2-core (2.18.3-4) over (2.18.3-3) ...
Preparing to unpack .../ruby2.2-dev2.2.4-1i386.deb ...
Unpacking ruby2.2-dev:i386 (2.2.4-1) over (2.2.3-2) ...
dpkg: error processing archive /var/cache/apt/archives/ruby2.2-dev2.2.4-1i386.deb (--unpack):

cannot copy extracted data for './usr/lib/i386-linux-gnu/libruby-2.2-static.a' to '/usr/lib/i386-linux-gnu/libruby-2.2-static.a.dpkg-new': failed to write (No space left on device)

dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Preparing to unpack .../ruby-minitest5.8.4-1all.deb ...
Unpacking ruby-minitest (5.8.4-1) over (5.8.3-1) ...
Preparing to unpack .../libruby2.22.2.4-1i386.deb ...
Unpacking libruby2.2:i386 (2.2.4-1) over (2.2.3-2) ...
dpkg: error processing archive /var/cache/apt/archives/libruby2.22.2.4-1i386.deb (--unpack):

cannot copy extracted data for './usr/lib/i386-linux-gnu/libruby-2.2.so.2.2.0' to '/usr/lib/i386-linux-gnu/libruby-2.2.so.2.2.0.dpkg-new': failed to write (No space left on device)

dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Preparing to unpack .../ruby2.22.2.4-1i386.deb ...
Unpacking ruby2.2 (2.2.4-1) over (2.2.3-2) ...
Preparing to unpack .../ruby-eventmachine1.0.7-3+b4i386.deb ...
Unpacking ruby-eventmachine (1.0.7-3+b4) over (1.0.7-3+b3) ...
Preparing to unpack .../thin1.6.3-2+b2i386.deb ...
Unpacking thin (1.6.3-2+b2) over (1.6.3-2+b1) ...
Preparing to unpack .../ruby-json1.8.3-1+b2i386.deb ...
Unpacking ruby-json (1.8.3-1+b2) over (1.8.3-1+b1) ...
Preparing to unpack .../beef-xss0.4.7.0-0kali2all.deb ...
Unpacking beef-xss (0.4.7.0-0kali2) over (0.4.7.0-0kali1) ...
dpkg: error processing archive /var/cache/apt/archives/beef-xss0.4.7.0-0kali2all.deb (--unpack):

unable to make backup link of './usr/share/beef-xss/extensions/ipec/models/ipecexploits.rb' before installing new version: No space left on device

dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
insserv: warning: current start runlevel(s) (empty) of script `beef-xss' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `beef-xss' overrides LSB defaults (0 1 6).
Preparing to unpack .../binfmt-support2.1.5-3+kali1i386.deb ...
Unpacking binfmt-support (2.1.5-3+kali1) over (2.1.5-1+kali1) ...
Preparing to unpack .../libbsd0
0.8.2-1i386.deb ...
Unpacking libbsd0:i386 (0.8.2-1) over (0.8.1-1) ...
Preparing to unpack .../bsd-mailx
8.1.2-0.20160123cvs-2i386.deb ...
Unpacking bsd-mailx (8.1.2-0.20160123cvs-2) over (8.1.2-0.20150408cvs-1) ...
Preparing to unpack .../busybox
1%3a1.22.0-18i386.deb ...
Unpacking busybox (1:1.22.0-18) over (1:1.22.0-15+b1) ...
Preparing to unpack .../commix
0.4b-20160204-0kali1all.deb ...
Unpacking commix (0.4b-20160204-0kali1) over (0.3b-0kali2) ...
dpkg: error processing archive /var/cache/apt/archives/commix
0.4b-20160204-0kali1all.deb (--unpack):

cannot copy extracted data for './usr/share/commix/src/core/injections/resultsbased/techniques/_init_.py' to '/usr/share/commix/src/core/injections/resultsbased/techniques/_init_.py.dpkg-new': failed to write (No space left on device)

Preparing to unpack .../cryptsetup-bin2%3a1.7.0-2kali1i386.deb ...
Unpacking cryptsetup-bin (2:1.7.0-2kali1) over (2:1.6.6-5kali1) ...
dpkg: error processing archive /var/cache/apt/archives/cryptsetup-bin
2%3a1.7.0-2kali1i386.deb (--unpack):

unable to make backup link of './usr/share/locale/fr/LCMESSAGES/cryptsetup.mo' before installing new version: No space left on device

dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Preparing to unpack .../cryptsetup2%3a1.7.0-2kali1i386.deb ...
Unpacking cryptsetup (2:1.7.0-2kali1) over (2:1.6.6-5kali1) ...
dpkg: error processing archive /var/cache/apt/archives/cryptsetup2%3a1.7.0-2kali1i386.deb (--unpack):

unable to make backup link of './usr/share/initramfs-tools/conf-hooks.d/cryptsetup' before installing new version: No space left on device

dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
debconf: DbDriver "templatedb": could not write /var/cache/debconf/templates.dat-new: No space left on device

Warning: unable to close filehandle $fh properly: No space left on device at /usr/share/perl5/Debconf/DbDriver.pm line 55.

dpkg: error while cleaning up:
subprocess installed post-installation script returned error exit status 1
Preparing to unpack .../cups-common2.1.3-1all.deb ...
Unpacking cups-common (2.1.3-1) over (2.1.2-2) ...
dpkg: error processing archive /var/cache/apt/archives/cups-common2.1.3-1all.deb (--unpack):

cannot copy extracted data for './usr/share/doc/cups-common/changelog.Debian.gz' to '/usr/share/doc/cups-common/changelog.Debian.gz.dpkg-new': failed to write (No space left on device)

dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
tar: ./templates: Cannot write: No space left on device
tar: ./prerm: Cannot write: No space left on device
tar: ./config: Cannot write: No space left on device
tar: ./postrm: Cannot write: No space left on device
tar: Exiting with failure status due to previous errors
dpkg-deb: error: subprocess tar returned error exit status 2
dpkg: error processing archive /var/cache/apt/archives/darkstat3.0.719-1i386.deb (--unpack):
subprocess dpkg-deb --control returned error exit status 2
tar: ./conffiles: Cannot write: No space left on device
tar: ./md5sums: Cannot write: No space left on device
tar: ./postrm: Cannot write: No space left on device
tar: Exiting with failure status due to previous errors
dpkg-deb: error: subprocess tar returned error exit status 2
dpkg: error processing archive /var/cache/apt/archives/debtags2.0.2all.deb (--unpack):
subprocess dpkg-deb --control returned error exit status 2
tar: ./shlibs: Cannot write: No space left on device
tar: Exiting with failure status due to previous errors
dpkg-deb: error: subprocess tar returned error exit status 2
dpkg: error processing archive /var/cache/apt/archives/libdevmapper-event1.02.12%3a1.02.116-1i386.deb (--unpack):
subprocess dpkg-deb --control returned error exit status 2
Preparing to unpack .../liblvm2cmd2.022.02.142-1i386.deb ...
dpkg: unrecoverable fatal error, aborting:
unable to flush /var/lib/dpkg/updates/tmp.i after padding: No space left on device
E: Sub-process /usr/bin/dpkg returned an error code (2)
E: Write error - write (28: No space left on device)
E: Write error - write (28: No space left on device)

Please ignore the "no space related error" i know for live one i did not keep much space but for persistence i kept 10.5GB.

This same process happed for me its been 2 days. I keep downloading, installing , making persistence and finding different solutions over net and in the end still stuck.

Requesting for expert advice for me.
Thanks in advance and sorry for the long description.

5 Responses

I am running Kali-rolling 32 on USB w/persistence. I used the install guide from http://docs.kali.org/downloading/kali-linux-live-usb-persistence/

here is what my partitions and file system looks like on the usb

----------------
is this what you have for your sources?
cat /etc/apt/sources.list
deb h+tp://http.kali.org/kali kali-rolling main non-free contrib

Note: i had to use a "+" instead of a "t" because the formatting on this site sucks my ass.

----
instead of using apt, try updating with
gpk-update-viewer

yes I have similar in sources.list file. and tried as you suggested:

gpk-update-viewer
and the result is below:

: unable to init server: could not connect: connection refused
(gpk-update-viewer:2237): Gtk-Warning *:cannt open display:

Note: my GUI is not working from persistence mood.

I tried this one too :

sudo apt-get install -f

and see that its installing the john-data1.8.0.6-jumbo-1-0kali8 .... processing .. processing .. and again oopps!!

(broken pipe)

anyone any idea please ?

maybe

# apt --reinstall install john-data1.8.0.6-jumbo-1-0kali8

or try using apt instead of apt-get
apt update
apt upgrade

Did not work :(

Share Your Thoughts

  • Hot
  • Active