LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Is there a way to find out if my interrupted upgrade is complete? (https://www.linuxquestions.org/questions/linux-newbie-8/is-there-a-way-to-find-out-if-my-interrupted-upgrade-is-complete-4175586611/)

audduck 08-08-2016 06:56 PM

Is there a way to find out if my interrupted upgrade is complete?
 
I recently tried to upgrade to xubuntu 16.04. My computer froze in the process, and I had to reboot. When the computer came back on, it gave me just a black screen like the terminal. I tried to finish the upgrade from there by trying get install upgrade (I don't remember the exact wording). To all appearances, it was successful, but I'd like to be sure. I'm having problems with my internet (I know that's a common bug, but none of the fixes is working for me. I'd like to at least be able to eliminate upgrade incompleteness as a possible cause of those problems.

Addendum: My computer is notifying me that a couple of updates are still undone. It says it needs internet to do them . Right now, I can't connect. I'm. Not sure how basic they are to my system, and I don't know how to find out.

chrism01 08-08-2016 11:41 PM

We'll need the EXACT cmd and err msgs, even if it means typing them in by hand.
Otherwise its going to be very tricky

Habitual 08-09-2016 06:59 AM

Describe this upgrade process please?
from/to
inplace/bootable media...

details? Thanks.

audduck 08-09-2016 04:40 PM

I was still using Xubuntu 12.something. My computer prompted me to upgrade. I clicked the button and put in my password. I didn't do it from the command line.

After the computer stalled and I turned it off and back on, it went to a black screen like the terminal. I tried sudo apt-get upgrade, in the hope that it would finish itself. To my computer illiterate eyes, it looked like it picked up more or less where it had left off, but I would never really be able to tell.

It had a minor problem with Gimp. I don't remember what it was. Sorry, it's been a few days. At any rate, I found my error on the internet and applied a commonly suggested fix, which seemed to work. The upgrade seemed to finish normally, although it told me "some index files failed to download. They have been ignored, or old ones used instead."

I get that message every time I install something. Usually, the program still works fine. I've been meaning to try to figure out what to do about it, but I just haven't gotten around to it. I don't know if it's a problem in this case or not.

When I rebooted the computer, it went straight into what looks like Xubuntu 16.04. It really seems to have been successful. My word processor, PDF viewer, and CD/DVD player are all working normally. When I opened a document in my word processor, it did so with LibreOffice 5, which is a newer version than what I had before.

When I typed "cat /etc/issue" into my terminal, it gave me Ubuntu 16.04.01 LTS /n /l.

Only the internet isn't working normally, and I know that's an issue that several people have had with the upgrade. I'd just like to make sure, if there's a way to do that. Interrupting an OS upgrade is potentially serious, and I find it a little hard to believe that I managed to fix the whole thing so easily.

audduck 08-09-2016 04:45 PM

I have another question. When I first logged in to my computer after upgrading, it prompted me that there were two more updates that required an internet connection to install. It hasn't prompted me since then. Is there a command I can use to find out what they are?

When I go to the software updates in my menu, it just says "Failed to download repository information. Check your internet connection."

hydrurga 08-09-2016 05:16 PM

Have you tried connecting to your router, and thence the internet, with an ethernet cable?

audduck 08-09-2016 05:18 PM

I haven't. Let me go home and try that.

ardvark71 08-09-2016 05:39 PM

Quote:

Originally Posted by audduck (Post 5588652)
Only the internet isn't working normally, and I know that's an issue that several people have had with the upgrade.

Hello and welcome to the forum :)

EDIT: Please try hydrurga's and Habitual's suggestion below and see if that works before posting the information I've requested below. :)

Also, if you would, if the ethernet connection works, please open a terminal and post the results of these commands...

Code:

lspci -nnk | grep -i net -A2
Code:

lsmod
Code:

iwconfig
If this is a laptop, please also include the results from...

Code:

rfkill list
I'm glad the rest of it works well, though. :)

Regards...

hydrurga 08-09-2016 05:50 PM

In addition to ardvark's advice, I would also advise you, if the internet connection works over ethernet, to run sudo apt-get update and sudo apt-get upgrade. This could well solve your connection problem by, for example, downloading the relevant wifi driver. Worth trying first before hitting the diagnostics (in my humble opinion; if ardvark naysays this then no problem).

ardvark71 08-09-2016 05:55 PM

Quote:

Originally Posted by hydrurga (Post 5588685)
In addition to ardvark's advice, I would also advise you, if the internet connection works over ethernet, to run sudo apt-get update and sudo apt-get upgrade. This could well solve your connection problem by, for example, downloading the relevant wifi driver. Worth trying first before hitting the diagnostics (in my humble opinion; if ardvark naysays this then no problem).

Hi...

I agree with your suggestion, that actually would be worth a shot. :)

Regards...

Habitual 08-09-2016 05:55 PM

Quote:

Originally Posted by audduck (Post 5588170)
I recently tried to upgrade to xubuntu 16.04.

to check what's "available" for upgrade, you can issue:
Code:

sudo apt-get update && sudo apt-get upgrade -s
-s is "simulate" so you can get a nice idea of the upgrade.
Code:

sudo do-release-upgrade
should tell you what's going on and whether or not your system is considered a candidate.
If it is not,
then issue
Code:

sudo lsb_release -dc
and show us the output.
We may have to get dirty.
You have an bootable installation disk, if necesary?

audduck 08-09-2016 09:16 PM

Wow. Thanks for all of the responses. I connected to the internet using a cable. The first thing I tried to do (I hadn't logged on here yet) was to navigate to my software updater via the menu and install updates that way. It gave me this error message:

Quote:

Not all updates can be installed. Run a partial upgrade, to install as many as possible. This can be caused by:
-a previous upgrade which didn't complete
-problems with some of the installed software
-unofficial software packages not provided by Ubuntu
-normal changes of a pre-release version of Ubuntu.
I did nothing and logged on here, instead. Per hydrurga's suggestion, I started with apt-get update and apt-get upgrade. When that finished, I restarted my computer. It absolutely solved my internet problem, which is an enormous relief.

Out of curiosity, though, I clicked again on my software updater through the menu. It gave me the same error message as before. Should I do a "partial upgrade"?

ardvark71 08-09-2016 10:12 PM

Quote:

Originally Posted by audduck (Post 5588768)
Wow. Thanks for all of the responses.

You're welcome :)

Quote:

Originally Posted by audduck (Post 5588768)
I did nothing and logged on here, instead. Per hydrurga's suggestion, I started with apt-get update and apt-get upgrade. When that finished, I restarted my computer. It absolutely solved my internet problem, which is an enormous relief.

Awesome! I'm glad that worked. :)

Quote:

Originally Posted by audduck (Post 5588768)
Out of curiosity, though, I clicked again on my software updater through the menu. It gave me the same error message as before. Should I do a "partial upgrade"?

Try this command first...

Code:

sudo dpkg --configure -a
If that doesn't resolve the issue, try these commands, entering them one at a time...

Code:

sudo apt-get install aptitude
sudo aptitude update
sudo aptitude dist-upgrade

Disclaimer: Be careful with these commands. Ones that are prefaced with "su" or "sudo" will essentially allow root access to your system. Mistakes could possibly damage or even destroy your OS. ;)

Let us know how it turns out...

Regards...

audduck 08-10-2016 12:52 AM

When I tried
Quote:

sudo dpkg --configure -a
nothing happened. It asked for my password, then did nothing. It just gave me
Quote:

[my username]:~$
Then, I put in
Quote:

sudo apt-get install aptitude
Quote:

sudo aptitude update
and
Quote:

sudo aptitude dist-upgrade.
At the end, it gave me
Quote:

Current status: 1 (-69) upgradable.

ardvark71 08-10-2016 01:08 AM

Hi audduck...

Does the solution here help? If not, take a look at the bottom solution (using Synaptic) here.

Just for future reference, when upgrading to a new version of a distribution, it is always advisable to do this by burning a new DVD of the (new) distribution and installing it from scratch. ;)

Regards...


All times are GMT -5. The time now is 12:18 PM.