Fixing upgrade problems Ubuntu - Oh no! Something has gone wrong.

Поделиться
HTML-код
  • Опубликовано: 15 июл 2024
  • Oh no! Something has gone wrong. A problem has occurred and the system can't recover.
    I recently upgraded my laptop from Ubuntu 21.04 to Ubuntu 21.10. Unfortunately the upgrade failed, but I managed to recover and complete the upgrade from the terminal. This video goes step by step through how I fixed it. This may also help with other upgrades that have a similar problem, including upgrades to Ubuntu 22.04 and 22.10.
    It involves opening a terminal session to see whether the upgrade was still running. I then rebooted, but after getting the same "Oh no! Something has gone wrong." error message then I had to boot into recovery mode.
    After issuing multiple apt commands I was eventually able to fix the error and get to a working desktop. I then reinstalled the displaylink drivers needed for USB-C video and completed the install using the Ubuntu graphical update application.
    I installed Firefox using the snap package (although probably better sticking with the debian dpkg version as the snap version is very slow to startup).
    For details of the Display Link Ubuntu driver install for USB-C video display see:
    • Linux needs proprietar...
    Chapters:
    00:00 Ubuntu error message
    00:35 Normal upgrade process
    01:11 Latest Ubuntu vs LTS
    01:54 Oh no! Something has gone wrong.
    03:25 Switching to a command line terminal
    04:26 Reboot to recovery mode
    05:04 dpkg --configure
    05:58 apt --fix-broken install
    06:10 apt upgrade
    07:03 Working desktop and install displaylink
    08:32 Post upgrade fix packages
    13:01 Installing firefox using snap
    15:35 Upgrade complete
  • НаукаНаука

Комментарии • 85

  • @Cramstyler
    @Cramstyler 2 года назад +12

    Thank you very much! I'm new to Linux aswell and this helped me to fix the issue! You saved me a lot of hassle, and I hope someone buys you a coffee today! :)

  • @petr-heinz
    @petr-heinz 2 года назад +1

    Thanks for sharing man. You are the best. Very calm and informative, while not promising anything...

  • @fjc2024
    @fjc2024 2 года назад +9

    Thank you so much! I had the bright idea to update my work PC during a working day and this saved me!
    And the fact that you explain all in such a tranquil tone helped me calm myself!

    • @nemodot
      @nemodot 2 года назад +2

      Same here lol

    • @Firas19912011
      @Firas19912011 Год назад +1

      dude same here LOL

    • @notmanas
      @notmanas Год назад +1

      Struggling on a Thursday :P

  • @anand_bhasme
    @anand_bhasme 2 года назад +4

    Thanks Man! You are a savior! I am new to linux environment so I faced this and you saved me :)

  •  Год назад +2

    Thank you so much, I had an Ubuntu 18 and I upgraded to 20 successfully. However, when I was then upgrading to the 22's, I got this white screen of terror. But your video saved me!

  • @flaviar2406
    @flaviar2406 2 года назад +1

    Thank you so much! It worked perfectly here. You explain it very clearly, it was really helpful!

  • @AlexanderSmith10-09-90
    @AlexanderSmith10-09-90 Год назад +1

    This also appears to work for updating from 20.04 to 22.04. Much appreciated!

  • @sameeramohite-chavan5572
    @sameeramohite-chavan5572 9 месяцев назад

    Thank you So Much Man really saved me from losing my laptop 🙏🏼🙏🏼

  • @Velo1010
    @Velo1010 Год назад

    Your solution worked! Thanks for sharing the video.

  • @Milena-ix5mq
    @Milena-ix5mq Год назад

    Thank you for the helpful presentation and video!

  • @nikitaastrakhantsev7812
    @nikitaastrakhantsev7812 Год назад

    Thank you, mister, you saved my working day!

  • @ligiasalzano
    @ligiasalzano Год назад

    Thanks a lot! It worked here. You saved me!

  • @danieljoseph1122
    @danieljoseph1122 Год назад

    This video is life saving one 😊👌 thanks a lot

  • @Phirrst
    @Phirrst 2 года назад

    Thank you sir, this was a life saver

  • @sumitkumar-el3kc
    @sumitkumar-el3kc 2 года назад

    I regret upgrading to 21.10 but thank you for the help

  • @DANSCLUPYOYO
    @DANSCLUPYOYO 9 месяцев назад

    Man thank you so much!! And thanks to the Internet

  • @lavimoolchandani1447
    @lavimoolchandani1447 2 года назад

    You saved the day man, thanks

  • @prabhu2kraj
    @prabhu2kraj Год назад

    Superb.. IT Helps working..Thank You..

  • @advance512
    @advance512 2 года назад +3

    Great, just continuing dpkg and apt update, upgrade, dist-upgrade, fixing broken packages was helpful.
    Ubuntu...argh. it never stops :)

  • @chimaobiprince1371
    @chimaobiprince1371 Год назад

    Thank you so much. you just saved a soul smiles...

  • @rookielector
    @rookielector Год назад

    Gracias por tu vídeo, me salvaste la vida

  • @charmender-il7zo2il3p
    @charmender-il7zo2il3p Год назад

    Thank you for save my upcoming homework for Linux shell script!!!!

  • @StyloBic71
    @StyloBic71 Год назад +1

    Thank you so much. My PC went to lock screen during upgrade 20.04 to 22.04, impossible to enter my password and stayed stuck for 4 hours. Had to hard switch-off which ended with the "Oh no" message. Turns out the tail /var/log/dpkg shows it stopped working on firefox upgrade. CTRL-Fx key to enter login, dpgk--configure -a and saw what the error was (ffmpeg issue). Made an apt autorepair as suggested then apt update and upgrade. and Voilà, I'm back ! Thanks again.

  • @elijahofori5102
    @elijahofori5102 Год назад

    Thank you!

  • @UdithaMelanMahindarathna
    @UdithaMelanMahindarathna 8 месяцев назад

    U saved my life ❤

  • @hhaahh86
    @hhaahh86 Год назад

    thank you!

  • @PatipanWongkleaw
    @PatipanWongkleaw 2 года назад

    It's such a headache even after months have been passed after 20.10 that I decided to update.
    After the update, zfs is no longer import on boot as well, took me half an hour to resolved.

  • @jko43
    @jko43 2 года назад

    You saved me!

  • @user-pj2yq5hl2m
    @user-pj2yq5hl2m 7 месяцев назад +2

    You could summarize it to one sentence: "sudo apt upgrade" instead of making a 18 minutes video.

  • @bigfrog7754
    @bigfrog7754 Год назад +1

    Yo, thanks. Too bad this had the happen at the end of my workday

  • @juyeon5847
    @juyeon5847 Год назад

    Thanks. However, at the 7 min mark, after completing update and before logging it, he says reboot the system but gives no terminal screen directions. Is there a command to reboot? Thanks

    • @PenguinTutor
      @PenguinTutor  Год назад

      To reboot from the terminal use
      sudo reboot
      Or
      sudo shutdown -r now

  • @jamestinsley2061
    @jamestinsley2061 Год назад

    Thanks!

    • @jamestinsley2061
      @jamestinsley2061 Год назад

      Thanks! You saved my bacon tonight upgrading to the latest version I had the same errors and this worked for me.

  • @meteoroman100
    @meteoroman100 Год назад +1

    Looks like a nice approach. Does it work for 22.04 uptade?

    • @PenguinTutor
      @PenguinTutor  Год назад +1

      It's a fix for package install failing at a certain point regardless of Ubuntu version. I've heard of several people with the same problem on later versions.

  • @pandeyravidev
    @pandeyravidev 2 года назад

    Happened with me. I am on PopOS and updated through Pop Upgrade. It downloaded the packages and rebooted but stuck on logs for about 3 hrs. Then I booted into older kernel and did apt install and dpkg reconfigure.
    Now I am able to run everything, but the system is unbearably slow. At first I thought that maybe it's an issue of KDE, So logged into GNOME, but same issue. Can you help ?

    • @PenguinTutor
      @PenguinTutor  2 года назад

      Performance problems can be hard to diagnose. The first tool I normally use is htop. That will show how busy your processor is and the processes that are using the most resources. Perhaps their is a process that is running incorrectly and using excessive resources.

    • @pandeyravidev
      @pandeyravidev 2 года назад

      @@PenguinTutor Booted into kernel 5.11 and is working fine.
      Have you ever faced anything something like this ?

    • @PenguinTutor
      @PenguinTutor  2 года назад

      @@pandeyravidev That is something that can sometimes happen if there is a bug in some software (such as a daemon) that only impacts on certain versions of the kernel.

  • @aonarchs7023
    @aonarchs7023 2 года назад

    I'm on fedora 35/36, issue happened when updating to 36. But I can't do Ctrl + alt + f 3(no reaction). what to do!

    • @PenguinTutor
      @PenguinTutor  2 года назад

      Fedora will be different as it uses RPM (RedHat Package Manager) / yum instead of Dpkg / Apt.
      On Fedora you can fix a package install using
      yum history
      get the transaction id then
      yum history redo force-reinstall
      Then try
      yum update
      But it's been a long time since I've used RPM so I don't know how effective that would be.

  • @mauriciorojas2204
    @mauriciorojas2204 2 месяца назад

    i try to ctrl alt and all the F´s but none of them worked :( im stuck here, you know if theres something more i can do?

    • @PenguinTutor
      @PenguinTutor  2 месяца назад

      In that case you will need to reboot, select recovery mode with root shell and then try the recovery from there.

  • @kashifrehman5982
    @kashifrehman5982 3 месяца назад

    At 04:25, which commands you used to reach that screen. Please help

    • @PenguinTutor
      @PenguinTutor  3 месяца назад

      If you are still in Ubuntu then you can try CTRL-ALT-F3 to get a terminal.
      If not then reboot, which should put you at the Grub screen. If you've set boot to automatically boot to Ubuntu then you can hold down shift when booting to bring up the grub menu.
      From the Grub Menu choose Ubuntu wth recover, then choose a root prompt.
      I hope that helps.

  • @hellmus1c398
    @hellmus1c398 2 года назад +1

    It just says " a problem has occurred and the system can't recover " and there is no log out option
    help me please!

    • @PenguinTutor
      @PenguinTutor  2 года назад

      Try Alt-F2 it Alt-F3 and see if you get a console. If not then you can hard reboot and choose recovery mode.

    • @sivaprakashkkumar9691
      @sivaprakashkkumar9691 2 года назад

      Did you resolve it

  • @multifandomedits5779
    @multifandomedits5779 2 года назад

    It didn't work for me. After using the apt --fix-broken install it errored me and said to try and run apt-get or apt --fix-missing?

    • @PenguinTutor
      @PenguinTutor  2 года назад

      Unfortunately it won't work for all problems. If the system has become corrupted then it may not be enough, but if it's just a failed install with the packages left in a reasonable state then it can recover from a number of different errors.

  • @e1Pr0f3ss0r
    @e1Pr0f3ss0r Год назад

    How could I solve this issue using live USB? Bcz Ctrl alt f3 is not working for me

    • @PenguinTutor
      @PenguinTutor  Год назад

      I'd suggest trying to boot into recovery mode instead (see the Advanced Options from the Grub screen). If that is not successful it may be possible using a Live USB. You would need to open a shell, chroot to the / partition using your hard drive and try using apt from there.
      If it is still failing then you may have a corrupt system and in that case it may be that it would be less time to re-install. Use the live system to backup all your data to another drive and then re-install using the existing partition.

  • @Davoda2
    @Davoda2 2 месяца назад

    My problem is that it's saying the I need to install a few more things but networking simply doesn't work (or I don't know how to fix it)
    So both dpkg and apt --fix-broken doesn't work. Can anyone help? Thank you

    • @PenguinTutor
      @PenguinTutor  2 месяца назад

      Do you have a physical ethernet port, connecting by cable often works even if your wireless driver doesn't.
      The alternative is that you can download files on a different computer, transfer by USB stick and then install using dpkg, but that can get very tedious if there are lots of dependencies that also need to be downloaded.

  • @aCartonOfNeinLives
    @aCartonOfNeinLives Год назад +1

    how do i get into recovery mode?

    • @PenguinTutor
      @PenguinTutor  Год назад

      If Alt-F3 doesn't work and you reboot then there is an advanced option on the Grub menu which has an option for recovery mode.

    • @aCartonOfNeinLives
      @aCartonOfNeinLives Год назад

      @@PenguinTutoroh thanks man

  • @kozeta67
    @kozeta67 Год назад

    I installed Ubuntu 22.04 on my VMWare machine, and it shows that screen. None of the options worked for me.

    • @PenguinTutor
      @PenguinTutor  Год назад

      This video was specifically about upgrades rather than installs as it's fixing a failed package install.
      Have you tried installing Ubuntu using the VMWare images that they provide?

  • @DhirendraKumar-wv2ok
    @DhirendraKumar-wv2ok 4 дня назад

    Hello....Ctrl-alt-f3 cmd not working, pl suggest to me another way to fix it

    • @PenguinTutor
      @PenguinTutor  3 дня назад

      In that case you may need to reboot and choose boot to recovery mode as shown at 18:19

  • @drac1676
    @drac1676 2 года назад

    My cntrl alt and f3 is not doing anything i tried pressing it not opening up my terminal

    • @PenguinTutor
      @PenguinTutor  2 года назад

      Depending upon your keyboard you may also need to press the Fn button as well.
      If that still doesn't work then it sounds like a more serious problem.
      You could try using a live disk and use rescue mode, but it may be that you need to reinstall.

  • @mehedihasanakash5872
    @mehedihasanakash5872 2 года назад

    Press Ctrl+Alt+F3 But my pc don't show terminal and any others option...how can i solve this??

    • @PenguinTutor
      @PenguinTutor  2 года назад

      You may also need to press the Fn button as well.
      If that still doesn't work then it sounds like a more serious problem.
      You could try using a live disk and use rescue mode, but it sounds like more than a few broken packages.

    • @ujwalkumar6364
      @ujwalkumar6364 Год назад

      @@PenguinTutor I tried Ctrl+Alt+F3 with fn key but still showing the same error, could you please tell me what I can do

    • @PenguinTutor
      @PenguinTutor  Год назад

      Unfortunately it sounds like your system isn't running currently. I suggest a re-install.

  • @e1Pr0f3ss0r
    @e1Pr0f3ss0r Год назад

    After pressing Ctrl alt f3 I am getting error. [Failed] Failed to start CUPS Scheduler

    • @PenguinTutor
      @PenguinTutor  Год назад

      CUPS is just used for printing - so it shouldn't prevent the systems from running. Did it give you a shell so that you can issue commands? In which case you should be able to fix and install packages using apt. If not then you may need to reboot and try using system recovery instead.

  • @DieBrunisSpekulationen
    @DieBrunisSpekulationen 2 года назад

    Sorry, I restart and then, typed Esc, I can see only the UEFI boot menu whit those options :
    ubuntu
    2 : IDE CD
    3 : IDE HDD
    ...but nothing about recovery mode

    • @PenguinTutor
      @PenguinTutor  2 года назад

      You should choose the HDD (as long as it allows that) and then it's the Grub boot menu where you can select recovery mode.

    • @DieBrunisSpekulationen
      @DieBrunisSpekulationen 2 года назад

      @@PenguinTutor thanks, but it was due to an incorrect BIOS setup. Now I have solved it and then, using your tutorial I have solved everything. So, double thank you ... heartily ❤

  • @e1Pr0f3ss0r
    @e1Pr0f3ss0r Год назад

    Plz help me I m waiting for ur reply

  • @apollodeveloper6366
    @apollodeveloper6366 2 года назад

    why firefox with snap?!??

    • @PenguinTutor
      @PenguinTutor  2 года назад

      This is a decision by Canonical and Mozilla and means that from Ubuntu 21.10 Firefox will be distributed by snap.
      I don't know why they made that decision. My experience is that the startup time for Firefox on Ubuntu is incredibly slow, I don't know whether this is definately related to snap, but I suspect that may be part of the reason. Once it is running it is responsive, but the long startup time means I am seriously considering changing my default browser.

  • @gabrielvrldev
    @gabrielvrldev 10 месяцев назад

    Didn't work for me. I did everything but It Just doesn't work

    • @PenguinTutor
      @PenguinTutor  10 месяцев назад +1

      Unfortunately it won't fix every problem. It usually works if some packages are updated and others not. If it hasn't worked then you may have to reinstall the operating system.

  • @RestonJD
    @RestonJD 2 года назад

    Thank you!

  • @goetheklausamadeus
    @goetheklausamadeus 2 года назад

    Thank you!