I previously had Ubuntu 18.04 along with Windows 10, after having many problems I decided to install Ubuntu 19.10, but one of the main problems (boot time) was still happening, I have tried almost everything with no solutions. It's really weird since my laptop is new and shouldn't have any troubles.
systemd-analyze time Startup finished in 3.449s (firmware) + 48.782s (loader) + 5.522s (kernel) + 52.274s (userspace) = 1min 50.028s graphical.target reached after 52.206s in userspace systemd-analyze blame 29.319s plymouth-quit-wait.service 8.752s NetworkManager-wait-online.service 8.734s snapd.service 8.325s dev-sda5.device 8.277s systemd-journal-flush.service 6.499s networkd-dispatcher.service 6.000s ModemManager.service 5.693s udisks2.service 4.703s accounts-daemon.service 4.134s NetworkManager.service 3.867s e2scrub_reap.service 3.645s systemd-fsck@dev-disk-by\x2duuid-86D3\x2dF64F.service 3.387s secureboot-db.service 3.344s grub-common.service 3.257s dev-loop2.device ...
Things I have tried so far: fresh installs many times, edited grub file with "quiet splash noresume", disabled some processes that were taking a long time, and most of the common solutions that somebody could find on internet.
cat /proc/swaps && free -m
Filename Type Size Used Priority /swapfile file 947128 0 -2 total used free shared buff/cache available Mem: 10969 1603 8030 124 1336 8958 Swap: 924 0 924
graphical.target @52.206s └─multi-user.target @52.206s └─kerneloops.service @31.766s +1.015s └─network-online.target @31.601s └─NetworkManager-wait-online.service @22.848s +8.752s └─NetworkManager.service @18.711s +4.134s └─dbus.service @18.704s └─basic.target @18.474s └─sockets.target @18.474s └─snapd.socket @18.310s +163ms └─sysinit.target @18.286s └─apparmor.service @15.427s +2.858s └─local-fs.target @15.423s └─boot-efi.mount @14.946s +477ms └─systemd-fsck@dev-disk-by\x2duuid-86D3\x2dF64F.service @10.828s +3.645s └─dev-disk-by\x2duuid-86D3\x2dF64F.device @10.826s
sudo systemctl disable NetworkManager-wait-online.service
systemd-analyze time Startup finished in 4.261s (firmware) + 12.044s (loader) + 4.338s (kernel) + 40.317s (userspace) = 1min 962ms graphical.target reached after 40.276s in userspace systemd-analyze blame 18.691s plymouth-quit-wait.service 10.686s dev-sda5.device 9.799s snapd.service 9.379s email@example.com 6.580s systemd-journal-flush.service 5.879s udisks2.service 5.620s networkd-dispatcher.service 4.928s ModemManager.service 3.954s NetworkManager.service 3.906s accounts-daemon.service 3.855s e2scrub_reap.service 2.898s apport.service ...
I know nothing about Ubuntu but I need it running properly for many courses. I really hope for someone to help me, thanks.