Package operation failed
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
up vote
3
down vote
favorite
When I ran software updater, everything went fine except for Avahi DNS config Tool. It told me:
Package operation failed. Installation or removal of package failed.
I have tried:
apt -y update
apt-get dist-upgrade
apt-get clean
apt -y autoremove
package-management
add a comment |Â
up vote
3
down vote
favorite
When I ran software updater, everything went fine except for Avahi DNS config Tool. It told me:
Package operation failed. Installation or removal of package failed.
I have tried:
apt -y update
apt-get dist-upgrade
apt-get clean
apt -y autoremove
package-management
fixit7: Please update your post with details as to version of Ubuntu you are running. This just happened to me too on my Ubuntu system: i.imgur.com/CGvrqdF.png running Ubuntu 17.10 (so is in need of an upgrade anyhow). And by the way, a huge defect here is that there is no way for the user to see the specific error from that popup window, thus forcing you to play games with apt-get etc.
â bgoodr
Jul 13 at 15:04
Run "sudo apt update && sudo apt upgrade" to see more specific error messages regarding the update process, and post these here.
â vanadium
Jul 13 at 15:17
Welcome to Ask Ubuntu! Could you please add a little more detail? What exactly did you do, what did you expect to happen and what happened instead? Did you encounter any warning or error messages? Please reproduce them in their entirety in your question. You can select, copy and paste terminal content and most dialogue messages in Ubuntu. Please edit your post to add information instead of posting a comment. (see How do I ask a good question?)
â David Foerster
Jul 14 at 18:35
It's been a long time since I posted the question. The problem is resolved but I can not remember what I did. Thanks for all the responses.
â fixit7
Jul 15 at 19:42
add a comment |Â
up vote
3
down vote
favorite
up vote
3
down vote
favorite
When I ran software updater, everything went fine except for Avahi DNS config Tool. It told me:
Package operation failed. Installation or removal of package failed.
I have tried:
apt -y update
apt-get dist-upgrade
apt-get clean
apt -y autoremove
package-management
When I ran software updater, everything went fine except for Avahi DNS config Tool. It told me:
Package operation failed. Installation or removal of package failed.
I have tried:
apt -y update
apt-get dist-upgrade
apt-get clean
apt -y autoremove
package-management
edited Jul 13 at 22:00
Tim
18.8k1482133
18.8k1482133
asked Apr 24 at 20:18
![](https://i.stack.imgur.com/e3cCX.jpg?s=32&g=1)
![](https://i.stack.imgur.com/e3cCX.jpg?s=32&g=1)
fixit7
508318
508318
fixit7: Please update your post with details as to version of Ubuntu you are running. This just happened to me too on my Ubuntu system: i.imgur.com/CGvrqdF.png running Ubuntu 17.10 (so is in need of an upgrade anyhow). And by the way, a huge defect here is that there is no way for the user to see the specific error from that popup window, thus forcing you to play games with apt-get etc.
â bgoodr
Jul 13 at 15:04
Run "sudo apt update && sudo apt upgrade" to see more specific error messages regarding the update process, and post these here.
â vanadium
Jul 13 at 15:17
Welcome to Ask Ubuntu! Could you please add a little more detail? What exactly did you do, what did you expect to happen and what happened instead? Did you encounter any warning or error messages? Please reproduce them in their entirety in your question. You can select, copy and paste terminal content and most dialogue messages in Ubuntu. Please edit your post to add information instead of posting a comment. (see How do I ask a good question?)
â David Foerster
Jul 14 at 18:35
It's been a long time since I posted the question. The problem is resolved but I can not remember what I did. Thanks for all the responses.
â fixit7
Jul 15 at 19:42
add a comment |Â
fixit7: Please update your post with details as to version of Ubuntu you are running. This just happened to me too on my Ubuntu system: i.imgur.com/CGvrqdF.png running Ubuntu 17.10 (so is in need of an upgrade anyhow). And by the way, a huge defect here is that there is no way for the user to see the specific error from that popup window, thus forcing you to play games with apt-get etc.
â bgoodr
Jul 13 at 15:04
Run "sudo apt update && sudo apt upgrade" to see more specific error messages regarding the update process, and post these here.
â vanadium
Jul 13 at 15:17
Welcome to Ask Ubuntu! Could you please add a little more detail? What exactly did you do, what did you expect to happen and what happened instead? Did you encounter any warning or error messages? Please reproduce them in their entirety in your question. You can select, copy and paste terminal content and most dialogue messages in Ubuntu. Please edit your post to add information instead of posting a comment. (see How do I ask a good question?)
â David Foerster
Jul 14 at 18:35
It's been a long time since I posted the question. The problem is resolved but I can not remember what I did. Thanks for all the responses.
â fixit7
Jul 15 at 19:42
fixit7: Please update your post with details as to version of Ubuntu you are running. This just happened to me too on my Ubuntu system: i.imgur.com/CGvrqdF.png running Ubuntu 17.10 (so is in need of an upgrade anyhow). And by the way, a huge defect here is that there is no way for the user to see the specific error from that popup window, thus forcing you to play games with apt-get etc.
â bgoodr
Jul 13 at 15:04
fixit7: Please update your post with details as to version of Ubuntu you are running. This just happened to me too on my Ubuntu system: i.imgur.com/CGvrqdF.png running Ubuntu 17.10 (so is in need of an upgrade anyhow). And by the way, a huge defect here is that there is no way for the user to see the specific error from that popup window, thus forcing you to play games with apt-get etc.
â bgoodr
Jul 13 at 15:04
Run "sudo apt update && sudo apt upgrade" to see more specific error messages regarding the update process, and post these here.
â vanadium
Jul 13 at 15:17
Run "sudo apt update && sudo apt upgrade" to see more specific error messages regarding the update process, and post these here.
â vanadium
Jul 13 at 15:17
Welcome to Ask Ubuntu! Could you please add a little more detail? What exactly did you do, what did you expect to happen and what happened instead? Did you encounter any warning or error messages? Please reproduce them in their entirety in your question. You can select, copy and paste terminal content and most dialogue messages in Ubuntu. Please edit your post to add information instead of posting a comment. (see How do I ask a good question?)
â David Foerster
Jul 14 at 18:35
Welcome to Ask Ubuntu! Could you please add a little more detail? What exactly did you do, what did you expect to happen and what happened instead? Did you encounter any warning or error messages? Please reproduce them in their entirety in your question. You can select, copy and paste terminal content and most dialogue messages in Ubuntu. Please edit your post to add information instead of posting a comment. (see How do I ask a good question?)
â David Foerster
Jul 14 at 18:35
It's been a long time since I posted the question. The problem is resolved but I can not remember what I did. Thanks for all the responses.
â fixit7
Jul 15 at 19:42
It's been a long time since I posted the question. The problem is resolved but I can not remember what I did. Thanks for all the responses.
â fixit7
Jul 15 at 19:42
add a comment |Â
4 Answers
4
active
oldest
votes
up vote
1
down vote
First command is worth to run:
sudo dpkg --configure -a
Then step by step:
sudo apt autoclean
sudo apt clean
sudo rm /var/lib/apt/lists/* -vf
sudo apt update
I'm not the OP, but am the bounty hunter (giver???). See gist at gist.github.com/bgoodr/8ba499bb9debdbb75c9b2e3e5e87e828 for my execution of those commands, with two additional commands listed at the end. For me I'm using Ubuntu 17.10 as I indicated in askubuntu.com/questions/1027919/package-operation-failed/⦠so I have not proceeded to do any repair yet, just listing what I have so far.
â bgoodr
Jul 16 at 13:32
I next triedsudo apt upgrade
and it also failed but generated more detailed error messages (ignore the curses codes as I'm using a dumb terminal to run these commands): gist.github.com/bgoodr/f0119a584f659c668551b4ebf93af890
â bgoodr
Jul 18 at 13:32
Triedsudo apt autoremove
as was indicated in askubuntu.com/a/1054931/340383 : gist.github.com/bgoodr/d43d7321b3fdf0edf23c507339219265 (of course I do not expect this to fix anything, done just for completeness)
â bgoodr
Jul 18 at 13:35
add a comment |Â
up vote
1
down vote
I searched for the error message that I kept encountering at https://gist.github.com/bgoodr/d77d997fe02af47c3a837e9b94256897#file-transcript_log6-txt-L26 which was:
dpkg: error processing archive /var/cache/apt/archives/avahi-dnsconfd_0.6.32-1ubuntu1.1_amd64.deb (--unpack):
and found the answer at https://askubuntu.com/a/1022548/340383 that has the final commands I used that fixed the problem.
Package operation failed is the result.
Now running Software Updater finishes successfully and is requiring a reboot.
add a comment |Â
up vote
0
down vote
A few other things to try:
sudo apt-get --fix-broken install
That normally fixes partial or broken installations. If it fails, add the output messages to your original question.
I tried that and got no error messages, but got no obvious messaging that indicated that it actually did anything: gist.github.com/bgoodr/e9cbbc57778c6310fbcd2fae30757145 (and this was after runningsudo apt autoremove
at askubuntu.com/questions/1027919/⦠in the other answer).
â bgoodr
Jul 19 at 1:16
add a comment |Â
up vote
0
down vote
This probably mean something was stuck in "dependency hell" or dpkg just messed up somewhere. To fix this try these commands.
Try forcefully deleting and refreshing your package lists with new remote ones.
sudo rm /var/lib/apt/lists/* -vf
sudo apt update
Once done, try cleaning and removing unnecessary files & packages.
sudo apt autoclean
sudo apt clean
sudo apt autoremove
Remove the package you are having trouble with.
sudo apt remove <package>
Next, try getting dpkg to resolve the issue on it's own.
sudo dpkg --configure -a
Next, try getting apt to resolve the issue on it's own.
sudo apt -f install
Last, try installing it again.
sudo apt install <package>
You could help all of us by running "lsb_release" and telling us which version of Ubuntu you are running, and also provide the contents of your /etc/apt.d/sources.list.
Earlier at askubuntu.com/questions/1027919/⦠I had done all steps up to, but not including, thesudo apt remove <package>
step. So I did that step now, and got an error. See gist: gist.github.com/bgoodr/11258fdc2cde3961f75f0263383926b3
â bgoodr
Jul 19 at 1:21
I continued on withsudo dpkg --configure -a
and got similar errors: gist.github.com/bgoodr/d77d997fe02af47c3a837e9b94256897
â bgoodr
Jul 19 at 5:07
I see askubuntu.com/a/1022548/340383 has some commands. Trying them seemed to fix the issue: gist.github.com/bgoodr/b134bac04fcc2243005b4ed88dabb208
â bgoodr
Jul 19 at 5:17
add a comment |Â
4 Answers
4
active
oldest
votes
4 Answers
4
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
First command is worth to run:
sudo dpkg --configure -a
Then step by step:
sudo apt autoclean
sudo apt clean
sudo rm /var/lib/apt/lists/* -vf
sudo apt update
I'm not the OP, but am the bounty hunter (giver???). See gist at gist.github.com/bgoodr/8ba499bb9debdbb75c9b2e3e5e87e828 for my execution of those commands, with two additional commands listed at the end. For me I'm using Ubuntu 17.10 as I indicated in askubuntu.com/questions/1027919/package-operation-failed/⦠so I have not proceeded to do any repair yet, just listing what I have so far.
â bgoodr
Jul 16 at 13:32
I next triedsudo apt upgrade
and it also failed but generated more detailed error messages (ignore the curses codes as I'm using a dumb terminal to run these commands): gist.github.com/bgoodr/f0119a584f659c668551b4ebf93af890
â bgoodr
Jul 18 at 13:32
Triedsudo apt autoremove
as was indicated in askubuntu.com/a/1054931/340383 : gist.github.com/bgoodr/d43d7321b3fdf0edf23c507339219265 (of course I do not expect this to fix anything, done just for completeness)
â bgoodr
Jul 18 at 13:35
add a comment |Â
up vote
1
down vote
First command is worth to run:
sudo dpkg --configure -a
Then step by step:
sudo apt autoclean
sudo apt clean
sudo rm /var/lib/apt/lists/* -vf
sudo apt update
I'm not the OP, but am the bounty hunter (giver???). See gist at gist.github.com/bgoodr/8ba499bb9debdbb75c9b2e3e5e87e828 for my execution of those commands, with two additional commands listed at the end. For me I'm using Ubuntu 17.10 as I indicated in askubuntu.com/questions/1027919/package-operation-failed/⦠so I have not proceeded to do any repair yet, just listing what I have so far.
â bgoodr
Jul 16 at 13:32
I next triedsudo apt upgrade
and it also failed but generated more detailed error messages (ignore the curses codes as I'm using a dumb terminal to run these commands): gist.github.com/bgoodr/f0119a584f659c668551b4ebf93af890
â bgoodr
Jul 18 at 13:32
Triedsudo apt autoremove
as was indicated in askubuntu.com/a/1054931/340383 : gist.github.com/bgoodr/d43d7321b3fdf0edf23c507339219265 (of course I do not expect this to fix anything, done just for completeness)
â bgoodr
Jul 18 at 13:35
add a comment |Â
up vote
1
down vote
up vote
1
down vote
First command is worth to run:
sudo dpkg --configure -a
Then step by step:
sudo apt autoclean
sudo apt clean
sudo rm /var/lib/apt/lists/* -vf
sudo apt update
First command is worth to run:
sudo dpkg --configure -a
Then step by step:
sudo apt autoclean
sudo apt clean
sudo rm /var/lib/apt/lists/* -vf
sudo apt update
answered Jul 13 at 21:45
Bob
9419
9419
I'm not the OP, but am the bounty hunter (giver???). See gist at gist.github.com/bgoodr/8ba499bb9debdbb75c9b2e3e5e87e828 for my execution of those commands, with two additional commands listed at the end. For me I'm using Ubuntu 17.10 as I indicated in askubuntu.com/questions/1027919/package-operation-failed/⦠so I have not proceeded to do any repair yet, just listing what I have so far.
â bgoodr
Jul 16 at 13:32
I next triedsudo apt upgrade
and it also failed but generated more detailed error messages (ignore the curses codes as I'm using a dumb terminal to run these commands): gist.github.com/bgoodr/f0119a584f659c668551b4ebf93af890
â bgoodr
Jul 18 at 13:32
Triedsudo apt autoremove
as was indicated in askubuntu.com/a/1054931/340383 : gist.github.com/bgoodr/d43d7321b3fdf0edf23c507339219265 (of course I do not expect this to fix anything, done just for completeness)
â bgoodr
Jul 18 at 13:35
add a comment |Â
I'm not the OP, but am the bounty hunter (giver???). See gist at gist.github.com/bgoodr/8ba499bb9debdbb75c9b2e3e5e87e828 for my execution of those commands, with two additional commands listed at the end. For me I'm using Ubuntu 17.10 as I indicated in askubuntu.com/questions/1027919/package-operation-failed/⦠so I have not proceeded to do any repair yet, just listing what I have so far.
â bgoodr
Jul 16 at 13:32
I next triedsudo apt upgrade
and it also failed but generated more detailed error messages (ignore the curses codes as I'm using a dumb terminal to run these commands): gist.github.com/bgoodr/f0119a584f659c668551b4ebf93af890
â bgoodr
Jul 18 at 13:32
Triedsudo apt autoremove
as was indicated in askubuntu.com/a/1054931/340383 : gist.github.com/bgoodr/d43d7321b3fdf0edf23c507339219265 (of course I do not expect this to fix anything, done just for completeness)
â bgoodr
Jul 18 at 13:35
I'm not the OP, but am the bounty hunter (giver???). See gist at gist.github.com/bgoodr/8ba499bb9debdbb75c9b2e3e5e87e828 for my execution of those commands, with two additional commands listed at the end. For me I'm using Ubuntu 17.10 as I indicated in askubuntu.com/questions/1027919/package-operation-failed/⦠so I have not proceeded to do any repair yet, just listing what I have so far.
â bgoodr
Jul 16 at 13:32
I'm not the OP, but am the bounty hunter (giver???). See gist at gist.github.com/bgoodr/8ba499bb9debdbb75c9b2e3e5e87e828 for my execution of those commands, with two additional commands listed at the end. For me I'm using Ubuntu 17.10 as I indicated in askubuntu.com/questions/1027919/package-operation-failed/⦠so I have not proceeded to do any repair yet, just listing what I have so far.
â bgoodr
Jul 16 at 13:32
I next tried
sudo apt upgrade
and it also failed but generated more detailed error messages (ignore the curses codes as I'm using a dumb terminal to run these commands): gist.github.com/bgoodr/f0119a584f659c668551b4ebf93af890â bgoodr
Jul 18 at 13:32
I next tried
sudo apt upgrade
and it also failed but generated more detailed error messages (ignore the curses codes as I'm using a dumb terminal to run these commands): gist.github.com/bgoodr/f0119a584f659c668551b4ebf93af890â bgoodr
Jul 18 at 13:32
Tried
sudo apt autoremove
as was indicated in askubuntu.com/a/1054931/340383 : gist.github.com/bgoodr/d43d7321b3fdf0edf23c507339219265 (of course I do not expect this to fix anything, done just for completeness)â bgoodr
Jul 18 at 13:35
Tried
sudo apt autoremove
as was indicated in askubuntu.com/a/1054931/340383 : gist.github.com/bgoodr/d43d7321b3fdf0edf23c507339219265 (of course I do not expect this to fix anything, done just for completeness)â bgoodr
Jul 18 at 13:35
add a comment |Â
up vote
1
down vote
I searched for the error message that I kept encountering at https://gist.github.com/bgoodr/d77d997fe02af47c3a837e9b94256897#file-transcript_log6-txt-L26 which was:
dpkg: error processing archive /var/cache/apt/archives/avahi-dnsconfd_0.6.32-1ubuntu1.1_amd64.deb (--unpack):
and found the answer at https://askubuntu.com/a/1022548/340383 that has the final commands I used that fixed the problem.
Package operation failed is the result.
Now running Software Updater finishes successfully and is requiring a reboot.
add a comment |Â
up vote
1
down vote
I searched for the error message that I kept encountering at https://gist.github.com/bgoodr/d77d997fe02af47c3a837e9b94256897#file-transcript_log6-txt-L26 which was:
dpkg: error processing archive /var/cache/apt/archives/avahi-dnsconfd_0.6.32-1ubuntu1.1_amd64.deb (--unpack):
and found the answer at https://askubuntu.com/a/1022548/340383 that has the final commands I used that fixed the problem.
Package operation failed is the result.
Now running Software Updater finishes successfully and is requiring a reboot.
add a comment |Â
up vote
1
down vote
up vote
1
down vote
I searched for the error message that I kept encountering at https://gist.github.com/bgoodr/d77d997fe02af47c3a837e9b94256897#file-transcript_log6-txt-L26 which was:
dpkg: error processing archive /var/cache/apt/archives/avahi-dnsconfd_0.6.32-1ubuntu1.1_amd64.deb (--unpack):
and found the answer at https://askubuntu.com/a/1022548/340383 that has the final commands I used that fixed the problem.
Package operation failed is the result.
Now running Software Updater finishes successfully and is requiring a reboot.
I searched for the error message that I kept encountering at https://gist.github.com/bgoodr/d77d997fe02af47c3a837e9b94256897#file-transcript_log6-txt-L26 which was:
dpkg: error processing archive /var/cache/apt/archives/avahi-dnsconfd_0.6.32-1ubuntu1.1_amd64.deb (--unpack):
and found the answer at https://askubuntu.com/a/1022548/340383 that has the final commands I used that fixed the problem.
Package operation failed is the result.
Now running Software Updater finishes successfully and is requiring a reboot.
answered Jul 19 at 5:22
![](https://i.stack.imgur.com/iqU0g.gif?s=32&g=1)
![](https://i.stack.imgur.com/iqU0g.gif?s=32&g=1)
bgoodr
4931519
4931519
add a comment |Â
add a comment |Â
up vote
0
down vote
A few other things to try:
sudo apt-get --fix-broken install
That normally fixes partial or broken installations. If it fails, add the output messages to your original question.
I tried that and got no error messages, but got no obvious messaging that indicated that it actually did anything: gist.github.com/bgoodr/e9cbbc57778c6310fbcd2fae30757145 (and this was after runningsudo apt autoremove
at askubuntu.com/questions/1027919/⦠in the other answer).
â bgoodr
Jul 19 at 1:16
add a comment |Â
up vote
0
down vote
A few other things to try:
sudo apt-get --fix-broken install
That normally fixes partial or broken installations. If it fails, add the output messages to your original question.
I tried that and got no error messages, but got no obvious messaging that indicated that it actually did anything: gist.github.com/bgoodr/e9cbbc57778c6310fbcd2fae30757145 (and this was after runningsudo apt autoremove
at askubuntu.com/questions/1027919/⦠in the other answer).
â bgoodr
Jul 19 at 1:16
add a comment |Â
up vote
0
down vote
up vote
0
down vote
A few other things to try:
sudo apt-get --fix-broken install
That normally fixes partial or broken installations. If it fails, add the output messages to your original question.
A few other things to try:
sudo apt-get --fix-broken install
That normally fixes partial or broken installations. If it fails, add the output messages to your original question.
answered Jul 13 at 21:29
![](https://i.stack.imgur.com/uGuGk.jpg?s=32&g=1)
![](https://i.stack.imgur.com/uGuGk.jpg?s=32&g=1)
Bernard Wei
772313
772313
I tried that and got no error messages, but got no obvious messaging that indicated that it actually did anything: gist.github.com/bgoodr/e9cbbc57778c6310fbcd2fae30757145 (and this was after runningsudo apt autoremove
at askubuntu.com/questions/1027919/⦠in the other answer).
â bgoodr
Jul 19 at 1:16
add a comment |Â
I tried that and got no error messages, but got no obvious messaging that indicated that it actually did anything: gist.github.com/bgoodr/e9cbbc57778c6310fbcd2fae30757145 (and this was after runningsudo apt autoremove
at askubuntu.com/questions/1027919/⦠in the other answer).
â bgoodr
Jul 19 at 1:16
I tried that and got no error messages, but got no obvious messaging that indicated that it actually did anything: gist.github.com/bgoodr/e9cbbc57778c6310fbcd2fae30757145 (and this was after running
sudo apt autoremove
at askubuntu.com/questions/1027919/⦠in the other answer).â bgoodr
Jul 19 at 1:16
I tried that and got no error messages, but got no obvious messaging that indicated that it actually did anything: gist.github.com/bgoodr/e9cbbc57778c6310fbcd2fae30757145 (and this was after running
sudo apt autoremove
at askubuntu.com/questions/1027919/⦠in the other answer).â bgoodr
Jul 19 at 1:16
add a comment |Â
up vote
0
down vote
This probably mean something was stuck in "dependency hell" or dpkg just messed up somewhere. To fix this try these commands.
Try forcefully deleting and refreshing your package lists with new remote ones.
sudo rm /var/lib/apt/lists/* -vf
sudo apt update
Once done, try cleaning and removing unnecessary files & packages.
sudo apt autoclean
sudo apt clean
sudo apt autoremove
Remove the package you are having trouble with.
sudo apt remove <package>
Next, try getting dpkg to resolve the issue on it's own.
sudo dpkg --configure -a
Next, try getting apt to resolve the issue on it's own.
sudo apt -f install
Last, try installing it again.
sudo apt install <package>
You could help all of us by running "lsb_release" and telling us which version of Ubuntu you are running, and also provide the contents of your /etc/apt.d/sources.list.
Earlier at askubuntu.com/questions/1027919/⦠I had done all steps up to, but not including, thesudo apt remove <package>
step. So I did that step now, and got an error. See gist: gist.github.com/bgoodr/11258fdc2cde3961f75f0263383926b3
â bgoodr
Jul 19 at 1:21
I continued on withsudo dpkg --configure -a
and got similar errors: gist.github.com/bgoodr/d77d997fe02af47c3a837e9b94256897
â bgoodr
Jul 19 at 5:07
I see askubuntu.com/a/1022548/340383 has some commands. Trying them seemed to fix the issue: gist.github.com/bgoodr/b134bac04fcc2243005b4ed88dabb208
â bgoodr
Jul 19 at 5:17
add a comment |Â
up vote
0
down vote
This probably mean something was stuck in "dependency hell" or dpkg just messed up somewhere. To fix this try these commands.
Try forcefully deleting and refreshing your package lists with new remote ones.
sudo rm /var/lib/apt/lists/* -vf
sudo apt update
Once done, try cleaning and removing unnecessary files & packages.
sudo apt autoclean
sudo apt clean
sudo apt autoremove
Remove the package you are having trouble with.
sudo apt remove <package>
Next, try getting dpkg to resolve the issue on it's own.
sudo dpkg --configure -a
Next, try getting apt to resolve the issue on it's own.
sudo apt -f install
Last, try installing it again.
sudo apt install <package>
You could help all of us by running "lsb_release" and telling us which version of Ubuntu you are running, and also provide the contents of your /etc/apt.d/sources.list.
Earlier at askubuntu.com/questions/1027919/⦠I had done all steps up to, but not including, thesudo apt remove <package>
step. So I did that step now, and got an error. See gist: gist.github.com/bgoodr/11258fdc2cde3961f75f0263383926b3
â bgoodr
Jul 19 at 1:21
I continued on withsudo dpkg --configure -a
and got similar errors: gist.github.com/bgoodr/d77d997fe02af47c3a837e9b94256897
â bgoodr
Jul 19 at 5:07
I see askubuntu.com/a/1022548/340383 has some commands. Trying them seemed to fix the issue: gist.github.com/bgoodr/b134bac04fcc2243005b4ed88dabb208
â bgoodr
Jul 19 at 5:17
add a comment |Â
up vote
0
down vote
up vote
0
down vote
This probably mean something was stuck in "dependency hell" or dpkg just messed up somewhere. To fix this try these commands.
Try forcefully deleting and refreshing your package lists with new remote ones.
sudo rm /var/lib/apt/lists/* -vf
sudo apt update
Once done, try cleaning and removing unnecessary files & packages.
sudo apt autoclean
sudo apt clean
sudo apt autoremove
Remove the package you are having trouble with.
sudo apt remove <package>
Next, try getting dpkg to resolve the issue on it's own.
sudo dpkg --configure -a
Next, try getting apt to resolve the issue on it's own.
sudo apt -f install
Last, try installing it again.
sudo apt install <package>
You could help all of us by running "lsb_release" and telling us which version of Ubuntu you are running, and also provide the contents of your /etc/apt.d/sources.list.
This probably mean something was stuck in "dependency hell" or dpkg just messed up somewhere. To fix this try these commands.
Try forcefully deleting and refreshing your package lists with new remote ones.
sudo rm /var/lib/apt/lists/* -vf
sudo apt update
Once done, try cleaning and removing unnecessary files & packages.
sudo apt autoclean
sudo apt clean
sudo apt autoremove
Remove the package you are having trouble with.
sudo apt remove <package>
Next, try getting dpkg to resolve the issue on it's own.
sudo dpkg --configure -a
Next, try getting apt to resolve the issue on it's own.
sudo apt -f install
Last, try installing it again.
sudo apt install <package>
You could help all of us by running "lsb_release" and telling us which version of Ubuntu you are running, and also provide the contents of your /etc/apt.d/sources.list.
answered Jul 13 at 22:01
XDASyndicate
11
11
Earlier at askubuntu.com/questions/1027919/⦠I had done all steps up to, but not including, thesudo apt remove <package>
step. So I did that step now, and got an error. See gist: gist.github.com/bgoodr/11258fdc2cde3961f75f0263383926b3
â bgoodr
Jul 19 at 1:21
I continued on withsudo dpkg --configure -a
and got similar errors: gist.github.com/bgoodr/d77d997fe02af47c3a837e9b94256897
â bgoodr
Jul 19 at 5:07
I see askubuntu.com/a/1022548/340383 has some commands. Trying them seemed to fix the issue: gist.github.com/bgoodr/b134bac04fcc2243005b4ed88dabb208
â bgoodr
Jul 19 at 5:17
add a comment |Â
Earlier at askubuntu.com/questions/1027919/⦠I had done all steps up to, but not including, thesudo apt remove <package>
step. So I did that step now, and got an error. See gist: gist.github.com/bgoodr/11258fdc2cde3961f75f0263383926b3
â bgoodr
Jul 19 at 1:21
I continued on withsudo dpkg --configure -a
and got similar errors: gist.github.com/bgoodr/d77d997fe02af47c3a837e9b94256897
â bgoodr
Jul 19 at 5:07
I see askubuntu.com/a/1022548/340383 has some commands. Trying them seemed to fix the issue: gist.github.com/bgoodr/b134bac04fcc2243005b4ed88dabb208
â bgoodr
Jul 19 at 5:17
Earlier at askubuntu.com/questions/1027919/⦠I had done all steps up to, but not including, the
sudo apt remove <package>
step. So I did that step now, and got an error. See gist: gist.github.com/bgoodr/11258fdc2cde3961f75f0263383926b3â bgoodr
Jul 19 at 1:21
Earlier at askubuntu.com/questions/1027919/⦠I had done all steps up to, but not including, the
sudo apt remove <package>
step. So I did that step now, and got an error. See gist: gist.github.com/bgoodr/11258fdc2cde3961f75f0263383926b3â bgoodr
Jul 19 at 1:21
I continued on with
sudo dpkg --configure -a
and got similar errors: gist.github.com/bgoodr/d77d997fe02af47c3a837e9b94256897â bgoodr
Jul 19 at 5:07
I continued on with
sudo dpkg --configure -a
and got similar errors: gist.github.com/bgoodr/d77d997fe02af47c3a837e9b94256897â bgoodr
Jul 19 at 5:07
I see askubuntu.com/a/1022548/340383 has some commands. Trying them seemed to fix the issue: gist.github.com/bgoodr/b134bac04fcc2243005b4ed88dabb208
â bgoodr
Jul 19 at 5:17
I see askubuntu.com/a/1022548/340383 has some commands. Trying them seemed to fix the issue: gist.github.com/bgoodr/b134bac04fcc2243005b4ed88dabb208
â bgoodr
Jul 19 at 5:17
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1027919%2fpackage-operation-failed%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
fixit7: Please update your post with details as to version of Ubuntu you are running. This just happened to me too on my Ubuntu system: i.imgur.com/CGvrqdF.png running Ubuntu 17.10 (so is in need of an upgrade anyhow). And by the way, a huge defect here is that there is no way for the user to see the specific error from that popup window, thus forcing you to play games with apt-get etc.
â bgoodr
Jul 13 at 15:04
Run "sudo apt update && sudo apt upgrade" to see more specific error messages regarding the update process, and post these here.
â vanadium
Jul 13 at 15:17
Welcome to Ask Ubuntu! Could you please add a little more detail? What exactly did you do, what did you expect to happen and what happened instead? Did you encounter any warning or error messages? Please reproduce them in their entirety in your question. You can select, copy and paste terminal content and most dialogue messages in Ubuntu. Please edit your post to add information instead of posting a comment. (see How do I ask a good question?)
â David Foerster
Jul 14 at 18:35
It's been a long time since I posted the question. The problem is resolved but I can not remember what I did. Thanks for all the responses.
â fixit7
Jul 15 at 19:42