17

I installed Ubuntu 16.04 I'm getting this error:

E: The package ubuntu-mono needs to be reinstalled, but I can't find an archive for it.

I haven't found the solution. What should I do?

dalia raad
  • 701
  • 1
  • 5
  • 9
  • What were you doing prior to that error? –  Jan 04 '17 at 18:59
  • I was trying to install office 2013 using play on Linux and I was facing a problem and that problem lead to this error :( – dalia raad Jan 04 '17 at 19:01
  • but it's different from my problem .... – dalia raad Jan 04 '17 at 19:07
  • No, it's the exact same thing. Start by checking the repositories and enable what is eventually disabled. Then do (in terminal) `sudo apt update`. Then try `sudo apt install ubuntu-mono`. If errors, please edit your question and post the full error messages along with the steps that triggered the original error. –  Jan 04 '17 at 19:16
  • ok.... I start it by using this command sudo dpkg --remove --force-all hl1440lpr and I got this message .. dpkg: warning: ignoring request to remove hl1440lpr which isn't installed – dalia raad Jan 04 '17 at 19:31
  • 3
    Don't follow it exactly. You need to replace the package names with the one affecting you. – TheWanderer Jan 05 '17 at 00:47

1 Answers1

43

I Found The Solution FINALLY.... first, open the terminal and write this command:

sudo dpkg --remove --force-all ubuntu-mono

after that, write this command

sudo apt-get update

then restart your PC. ^_^

dalia raad
  • 701
  • 1
  • 5
  • 9
  • 2
    Why reboot? Also, that's exactly the same as the accepted answer to the linked question. – David Foerster Jan 05 '17 at 09:39
  • Agree like it BUT...... in this site, there are many people that maybe full in this error and maybe they don't have the proper knowledge of how to correcting it regards – dalia raad Jan 05 '17 at 17:27
  • I think you misunderstood. Which kind of (potential) errors do you expect to avoid with a reboot in this situation? Package management is generally unaffected by reboots (unless it affects the package of the currently booted kernel or something like that). – David Foerster Jan 05 '17 at 18:10
  • oh... well, for reboot thing I said it because I was used to using it in the windows I recently shift to ubuntu. regards – dalia raad Jan 05 '17 at 19:18
  • You most welcome. ^_^ – dalia raad Jan 06 '19 at 20:55