last day (15 days later) » 

4:50 PM
0
A: /usr/bin/dpkg returned an error when remove & install broken packages

mchidAssuming you are running regular ubuntu and not ubuntu-gnome, run the following commands to fix the problem: sudo apt-get update sudo apt-get purge libreoffice* python3-uno sudo apt-get install libreoffice-java-common libreoffice-sdbc-hsqldb libreoffice-core python3-uno libreoffice-math libreoff...

 
I think apt-get purge triggers the error anyway, since apt-get runs on the top of dpkg. I'm trying to remove packages manually, forcing by sudo dpkg --force-all -P to purge. And it seems works. Wait a moment to know.
 
@knh190 well then, why don't you give it a try and thank me afterwards :)
@knh190 you see MY command purges all packages that have libreoffice in the name hence "*" (the wildcard).
 
Yeah, it purges the packages clean but cannot install them correctly. apt-get reports poor information to know what's going wrong.
 
@knh190 please post the error from sudo apt-get install
 
I made up the information.
 
4:50 PM
@knh190 you followed ALL instructions??? copy/paste my commands into the terminal to run them one-by-one including sudo apt-get purge and please post the WHOLE output from the commands . . . just copy and paste the terminal into your question, highlight the entire block and press ctrl + k to convert it into command format.
 
@mchid I updated.
 
okay, i'll take a look
@knh190 so what does it say after that
 
nothing, returned back to terminal
and I cannot update source for font.
wait a moment, I'll try it again, which reported 404
 
then what does it say before that
aaahhh now we get to the problem. please post the entire line to include the url
 
Hit http://security.ubuntu.com trusty-security/universe Translation-en
Fetched 792 kB in 21s (37.6 kB/s)
W: Failed to fetch http://ppa.launchpad.net/upubuntu-com/office/ubuntu/dists/trusty/main/binary-amd64/Packages 404 Not Found

W: Failed to fetch http://ppa.launchpad.net/upubuntu-com/office/ubuntu/dists/trusty/main/binary-i386/Packages 404 Not Found

E: Some index files failed to download. They have been ignored, or old ones used instead.
The installation failed at the font. I noticed..
 
5:00 PM
That ppa only goes up to precise
but it really doesn't matter since none of the packages have anything to do with libreoffice
 
How to force apt-get install reports details of installation error?
 
Just run the command and the errors will output
 
well, actually it didn't...it's no help with a single line "Sub-process /usr/bin/dpkg returned an error code (1)"
sudo dpkg --configure -a reports nothing now.
 
then run sudo apt-get purge libreoffice*
 
done. it's not installed.
neither libreoffice, nor openoffice. checked them both.
well, anyway, thank you. I'll leave this problem for later
 
5:13 PM
`then what's package is Sub-process /usr/bin/dpkg returned an error code (1) for then
 
I dunno. any way to find it out?
 
by looking at the termina
l
 
I posted all commands I tried appended to the post. they said packages are clean.
terminal reports single line error, dude. no further information I could force it so far.
 
try running dpkg -l | grep libreoffice
 
nothing.
 
5:33 PM
Yeah as you see, preceding the error is "Errors were encountered while processing:
" and then the package name is listed.
 
trying to overwrite '/usr/bin/soffice', which is also in package openoffice-debian-menus 4.1.1-9775
Oh.
 
then, sudo apt-get purge openoffice*
you might need to run sudo apt-get -f install
 

last day (15 days later) »