Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
4
rated 0 times [  4] [ 0]  / answers: 1 / hits: 610  / 1 Year ago, sun, april 9, 2023, 4:22:44

While installing dropbox from the repositories, my laptop ran out of power, and so the system went into a broken state. When I rebooted, I tried two methods to set it right. One was



sudo dpkg --configure -a


and



sudo apt-get install -f


Both were working fine, and they were downloading the dropbox package, but owing to my slow internet connection here, it's never getting completed, and is stuck at (at most) 47 %. A sample terminal-shot is



Setting up nautilus-dropbox (1.4.0-3)...
Dropbox is the easiest way to share and store your files online. Want to learn more? Head to http://www.dropbox.com/
Downloading Dropbox... 16%


So if this doesn't get completed the package will remain broken for ever, and I won't be able to install more software. So if there any way, I can rollback and then download dropbox from the site instead?



When I run dpkg -l | grep -v ^ii



Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-=========================================-=========================================-============-==============================================================================
rc libavcodec53:i386 6:0.8.5-0ubuntu0.12.10.1 i386 Libav codec library
rc libavutil51:i386 6:0.8.5-0ubuntu0.12.10.1 i386 Libav utility library
iF nautilus-dropbox 1.4.0-3 i386 Dropbox integration for Nautilus

More From » apt

 Answers
7

Let's fool nautilus-dropbox configuration scripts.



Backup some files:



sudo cp -a /var/lib/dpkg/info/nautilus-dropbox.postinst /var/lib/dpkg/info/nautilus-dropbox.postinst.bkp
sudo cp -a /var/lib/dpkg/info/nautilus-dropbox.prerm /var/lib/dpkg/info/nautilus-dropbox.prerm.bkp


Write new empty postinst and prerm scripts:



echo '#!/bin/sh' | sudo tee /var/lib/dpkg/info/nautilus-dropbox.postinst
echo 'exit 0' | sudo tee -a /var/lib/dpkg/info/nautilus-dropbox.postinst
sudo cp -a /var/lib/dpkg/info/nautilus-dropbox.postinst /var/lib/dpkg/info/nautilus-dropbox.prerm


Now you should be able to remove nautilus-dropbox:



sudo apt-get purge nautilus-dropbox

[#32358] Sunday, April 9, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
olouredping

Total Points: 259
Total Questions: 100
Total Answers: 121

Location: New Caledonia
Member since Wed, Sep 15, 2021
3 Years ago
olouredping questions
;