LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-30-2018, 03:05 PM   #1
Gregg Bell
Senior Member
 
Registered: Mar 2014
Location: Illinois
Distribution: Xubuntu
Posts: 2,034

Rep: Reputation: 176Reputation: 176
Having problems getting updates after shutting computer down from terminal


I had probably too many things open and all these programs minimized and the computer wouldn't let me close them. Rather than just powering off and since I could still access the terminal, I went to another computer and Googled how to shut down a Linux computer from the terminal.

It gave me this and I tried it:

sudo /sbin/shutdown -r now

It shut down the computer and re-booted it.

I noticed there was a software update in the toolbar but when I went to install it, it didn't. It said something like 'dependencies couldn't be fetched' or 'installation failed.' The bottom line is they didn't install.

So I went into the terminal and ran:

sudo apt-get update

and then

sudo apt-get upgrade

And the upgrade balked, or at least seemed to, at installing the updates. It suggested running sudo apt-get update again so I did, but it again balked at installing the updates. It also suggested

try with --fix-missing?

but I was feeling like I was getting in over my head so I didn't try that.

It seemed to balk specifically on

Code:
Err:1 https://mega.nz/linux/MEGAsync/xUbuntu_16.04 ./ megasync 3.6.6+6.1
  404  Not Found
E: Failed to fetch https://mega.nz/linux/MEGAsync/xUbuntu_16.04/./amd64/megasync_3.6.6+6.1_amd64.deb  404  Not Found
And I have been having issues with Mega (cloud storage) for a while. But I was concerned that the security updates (I noticed there were a lot of security updates in the apt-get update--is it okay to post all that stuff here or is it a bad idea to show that stuff in a public forum?) and other important things like browser updates seemed like they were not being installed either.

So, were those security updates and browser updates installed and only the Mega stuff was not installed? (It didn't seem like anything installed, the

Code:
Err:1 https://mega.nz/linux/MEGAsync/xUbuntu_16.04 ./ megasync 3.6.6+6.1
  404  Not Found
E: Failed to fetch https://mega.nz/linux/MEGAsync/xUbuntu_16.04/./amd64/megasync_3.6.6+6.1_amd64.deb  404  Not Found
message came up really pretty quickly. Here's the terminal results of the upgrade attempt:

Quote:
sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
linux-headers-4.4.0-119 linux-headers-4.4.0-119-generic linux-headers-4.4.0-121 linux-headers-4.4.0-121-generic linux-headers-4.4.0-122 linux-headers-4.4.0-122-generic
linux-image-4.4.0-119-generic linux-image-4.4.0-121-generic linux-image-4.4.0-122-generic linux-image-extra-4.4.0-119-generic linux-image-extra-4.4.0-121-generic
linux-image-extra-4.4.0-122-generic
Use 'sudo apt autoremove' to remove them.
The following packages will be upgraded:
google-chrome-stable ifupdown libplymouth4 linux-firmware megasync plymouth plymouth-label plymouth-theme-ubuntu-text python3-update-manager update-manager update-manager-core
11 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 7,190 kB/111 MB of archives.
After this operation, 10.7 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 python3-update-manager all 1:16.04.13 [32.6 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 update-manager-core all 1:16.04.13 [5,496 B]
Get:3 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 update-manager all 1:16.04.13 [543 kB]
Err:4 https://mega.nz/linux/MEGAsync/xUbuntu_16.04 ./ megasync 3.6.6+6.1
404 Not Found
Fetched 581 kB in 1s (491 kB/s)
E: Failed to fetch https://mega.nz/linux/MEGAsync/xUbun...+6.1_amd64.deb 404 Not Found
Can you tell from that if the important stuff installed? (I'm not worried about Mega.) Is there anything I need to do?

And maybe it's not a good idea to use that terminal command again if things get locked up? Better to just power the computer down? Thanks.
 
Old 05-30-2018, 06:58 PM   #2
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
Open /etc/apt/sources.list and comment out (put a '#' in front) the lines for mega repositories, do 'apt-get update', and perform the upgrade procedure again.
 
1 members found this post helpful.
Old 05-30-2018, 07:17 PM   #3
Gregg Bell
Senior Member
 
Registered: Mar 2014
Location: Illinois
Distribution: Xubuntu
Posts: 2,034

Original Poster
Rep: Reputation: 176Reputation: 176
Quote:
Originally Posted by AwesomeMachine View Post
Open /etc/apt/sources.list and comment out (put a '#' in front) the lines for mega repositories, do 'apt-get update', and perform the upgrade procedure again.
Thanks so much, Awesome, but I think the problem straightened itself out. I ran a couple more update/upgrades (that I think didn't work). Then the computer froze again and I powered it off. Then when it came up again, the Mega icon appeared at the top of the screen saying Mega had synced. I ran the Software Updater from the Application Menu and it said the software on the computer was up to date. Then I ran the apt-get update and apt-get upgrade and both of them worked the way they should.

I am bookmarking your solution if this problem comes up again. Thank you!
 
Old 05-31-2018, 11:42 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Code:
sudo /sbin/shutdown -r now
FYI: -r = reboot ; use -h (halt) to shutdown & NOT reboot
 
1 members found this post helpful.
Old 06-01-2018, 12:10 PM   #5
Gregg Bell
Senior Member
 
Registered: Mar 2014
Location: Illinois
Distribution: Xubuntu
Posts: 2,034

Original Poster
Rep: Reputation: 176Reputation: 176
Quote:
Originally Posted by chrism01 View Post
Code:
sudo /sbin/shutdown -r now
FYI: -r = reboot ; use -h (halt) to shutdown & NOT reboot
Thanks Chris
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sat Mar 23 updates replace Terminal by xfce4-terminal burdi01 Slackware 5 04-22-2013 03:15 AM
Shutting Down The Computer marvelous Linux - Newbie 13 08-01-2004 01:03 AM
problems shutting down the computer. qanopus Linux - General 17 01-06-2004 11:08 PM
computer keeps shutting down mjkramer Linux - Newbie 1 10-04-2003 05:40 AM
Computer not shutting down Trebor Linux - Newbie 5 08-15-2003 04:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration