LinuxQuestions.org
Visit Jeremy's Blog.
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, 04:05 PM   #1
Gregg Bell
Senior Member
 
Registered: Mar 2014
Location: Illinois
Distribution: Xubuntu
Posts: 1,948

Rep: Reputation: 175Reputation: 175
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, 07:58 PM   #2
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,511

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
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, 08:17 PM   #3
Gregg Bell
Senior Member
 
Registered: Mar 2014
Location: Illinois
Distribution: Xubuntu
Posts: 1,948

Original Poster
Rep: Reputation: 175Reputation: 175
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 06-01-2018, 12:42 AM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.10, Centos 7.5
Posts: 17,707

Rep: Reputation: 2497Reputation: 2497Reputation: 2497Reputation: 2497Reputation: 2497Reputation: 2497Reputation: 2497Reputation: 2497Reputation: 2497Reputation: 2497Reputation: 2497
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, 01:10 PM   #5
Gregg Bell
Senior Member
 
Registered: Mar 2014
Location: Illinois
Distribution: Xubuntu
Posts: 1,948

Original Poster
Rep: Reputation: 175Reputation: 175
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 04:15 AM
Shutting Down The Computer marvelous Linux - Newbie 13 08-01-2004 02:03 AM
problems shutting down the computer. qanopus Linux - General 17 01-07-2004 12:08 AM
computer keeps shutting down mjkramer Linux - Newbie 1 10-04-2003 06:40 AM
Computer not shutting down Trebor Linux - Newbie 5 08-15-2003 05:33 AM

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

All times are GMT -5. The time now is 08:30 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration