Problem with dpkg-preconfigure, how to correct?
Solution 1
First, remove Teamviewer with:
sudo dpkg -r teamviewer7
Then run
sudo apt-get update && sudo apt-get -f install
Solution 2
I just ran into this issue and fixed it just now. I made three mistakes:
First, I downloaded it, attempted to install it and I realized my archive manager wasn't working properly. Next, when I tried to remove the package, the root user couldn't access dpkg
, so I deferred the uninstall. Third was the worst: I restarted. By restarting Ubuntu 12.04, the OS was stuck booting forever just as you describe.
Fortunately, I had a copy of Finnix 103: http://www.finnix.org/. After a bit of analysis on the hard drive partition, I realized that bash
, dash
and sh
have been deleted from the /bin
directory. So, I copied them over from the Finnix installation:
# mount <ubuntu_partition> /mnt/linux
# cp /bin/bash /mnt/linux/bin/bash
# cp /bin/dash /mnt/linux/bin/dash
# cp /bin/sh /mnt/linux/bin/sh
At this point, I could use dpkg
again while using chroot
on my Ubuntu partition. I noticed again, however, that apt-get
was insisting to remove dash
again upon each command. So, I reinstalled dash
:
# apt-get install dash
Finally, I restarted my computer and booted up into Ubuntu 12.04 just fine. I inspected the package history and these were my results:
All events at 5:28 PM were when I blindly executed the recommended TeamViewer 7 installation commands to get into an online meeting:
$ sudo dpkg -i teamviewer_linux.deb
$ sudo apt-get -f install
At this point, I didn't want any more of TeamViewer. So to clean up further, I purged teamviewer7:i386
using dpkg:
$ sudo dpkg --purge teamviewer7:i386
$ sudo apt-get remove teamviewer7:i386
In conclusion, the TeamViewer 7 i386 version for Linux removes /bin/dash
which is the root of all the symptoms from the terminal failure, to the dpkg
failure to the boot failure.
Related videos on Youtube
Luke Villanueva
Updated on September 18, 2022Comments
-
Luke Villanueva over 1 year
I want to know how to extract data from this list.
Response [ { "CCTID": "46204", "Name": "Christopher Columbus", "CarrierId": 64239 }, { "CCTID": "46208", "Name": "Keith Bowles", "CarrierId": 64239 }, { "CCTID": "46205", "Name": "Michael Jordan", "CarrierId": 64239 }, { "CCTID": "46207", "Name": "NESV PH", "CarrierId": 64239 } ]
How can I group this data to per driver and access the following data like a list. For example. List of drivers. Driver[0]["CCTID"] returns "46204", Driver[0]["Name"] returns "Driver[0]["CCTID"] returns "46204" Driver[0]["CarrierId"] returns "64239" so on and so forth. Any ideas? Thanks!
-
Shobhit Puri over 10 years
-
Luke Villanueva over 10 yearsI tried converting it to string. Using String s = EntityUtils.toString(response.getEntity()); But I can't extract the data the way I wanted it to be.
-
Raghunandan over 10 years@ljpv14 what did you try to extract the data. did you try parsing the response? if you search on so you will find many similar posts
-
-
Eric Wilson over 11 yearsI'll upvote, but not accept, because I have no way of confirming. Things got worse from here, to where I had no working terminal, and then couldn't boot. I reinstalled.
-
Robert over 11 yearsThis command won't work because
bash
,dash
andsh
have been deleted. So, root won't be able to access it; the evidence is here:E: Sub-process /usr/sbin/dpkg-preconfigure --apt || true returned an error code (100) E: Failure running script /usr/sbin/dpkg-preconfigure --apt || true
-
Luke Villanueva over 10 years+1 for supplying what I really need. Works like a charm! Thanks!