Live data from Hacker News

Microsoft suggests command line fiddling to get Windows 10 update installed

theregister.com

81–90 of 223 posts

Re: Microsoft suggests command line fiddling to get Windows 10 update installed

#81
post #55
post #30

Earlier quoted context omitted.

Yeah, this isn't Linux. Linux is better than this these days.

I use Linux. You absolutely need to drop down to the command line at times. Upgrading my Kennel, or Graphics driver breaks something like 20% of the time for me.

I don't have anything break on the graphical stack on my computers since 2007.

But somehow Debian keeps uninstalling the display manager. One would think this is the easiest problem in the world to avoid, but they avoid every hard problem, and this one passes by.

Re: Microsoft suggests command line fiddling to get Windows 10 update installed

#82
post #72
post #27

Had the journalist tryied Linux, would have known that it gives much better error messages than some random looking number.

Yes, but sometimes useful messages can only be found in dmesg.

dmesg has been there since forever. If anything windows (auto) update has been one of the worst part, esp. when it fails to update... or worse replaces your video/printer driver with whatever it finds. The latter (video) messes up audio for hdmi/displayport in addition of installing bogus drivers.

I'd be tad happier to have apt install/apt update/upgrade instead of windows schedule 'updates'

Re: Microsoft suggests command line fiddling to get Windows 10 update installed

#84
post #70
post #30

Earlier quoted context omitted.

Yeah, this isn't Linux. Linux is better than this these days.

On the current LTS version of Ubuntu, I had to drop down to the terminal to adjust the mousewheel's scroll speed.

Having to use such a terrible hack to change scroll speed on GNOME is my least favorite thing about it.

Re: Microsoft suggests command line fiddling to get Windows 10 update installed

#85
post #7

When installing the update, some users are finding themselves faced with an 0x80070643 error, a generic failure message. Unfortunately, according to Microsoft, "because of an error in the error code handling routine," this might not be the correct error. Error in the error code code is giving the wrong error code for the error. I'm curious how often the error code code needs touching that there is an error in there t…

This is how I imagine the error code looks. How else can you even return the wrong error? ```c# public class FooError { public Message(){ //TODO: I copy pasted this from somewhere else. I still need to update to a meaningful message return "this is a BarError" } } ```

My guess is that part of the error handling is appending to the logs. Maybe something like (I can't remember C#, so thinking about Java instead):

    try{
      try{
        windows_update_function_that_saves_to_disk();
      }catch(DiskSpaceException e){
        DiskLogger.log(e.printStackTrace()); // itself tries to save to disk
        System.err.println(e.printStackTrace());
      }
    }catch(GenericException e){
      // something went really badly wrong, generic error
    }

Re: Microsoft suggests command line fiddling to get Windows 10 update installed

#86
post #7

When installing the update, some users are finding themselves faced with an 0x80070643 error, a generic failure message. Unfortunately, according to Microsoft, "because of an error in the error code handling routine," this might not be the correct error. Error in the error code code is giving the wrong error code for the error. I'm curious how often the error code code needs touching that there is an error in there t…

This is how I imagine the error code looks. How else can you even return the wrong error? ```c# public class FooError { public Message(){ //TODO: I copy pasted this from somewhere else. I still need to update to a meaningful message return "this is a BarError" } } ```

In C/C++ land, errors are often mapped to const size_t int values. Whether it's an enum or just a list of "codes". In this case, I suspect (like OpenGL) it's just a giant list of codes defined as "extern const uint32_t MY_SUPER_ERROR = 0x0001" and some other part of the code has defined the same value to another error type. Then it's trying to value match and give a human readable value (0x001) but based on the matched value (0x0001 becomes 0x1000) because MY_SUPER_ERROR is 0x1000 in some other part of the code. This happens when people in C/C++ land follow this logic:

Lib Guy 1: "I need an error.h to store all my errors to make it easy for me"

Lib Gal 2: "I need an error.h to store all of my error values so I can just use type names like a boss"

Exe Guru 1: "Which is this?"

The other option is that an error was thrown inside error handling code which threw an error and was unhandled, throwing an error generically at the base.

Re: Microsoft suggests command line fiddling to get Windows 10 update installed

#87
post #49

Earlier quoted context omitted.

Exit code 139. Hm.

That's usually not the full error message, and you can still easily find the number's meaning by opening the man page of wathever piece of software terminated with that exit code.

Depends really. If it's some kind of runtime or VM you pretty much have zero idea what the exit code was. Python, CLR, JVM tend to leave you in this mire.

Re: Microsoft suggests command line fiddling to get Windows 10 update installed

#89
post #17

Haha! Yes, this was a mess! I was called to help my concerned stepson with "an update error" this past weekend. I'm a software engineer but even I kind of balked at it at first, realizing how very easily an on-the-fly resizing of partitions can go wrong! Let's take it from the beginning. He pointed me to the "out of disk space" error code, which isn't in text form to begin with, but only something you find out by goo…

I thought they had many computers of various configurations they test on. And wasn't there a release note describing what could happen? So some part of the org knew what was going to happen.

I was under the impression they USED to do this and only have oddly minimal QA anymore on updates

i.e., I make a point to never run windows updates, they've only caused more harm than good post Win7

Re: Microsoft suggests command line fiddling to get Windows 10 update installed

#90
post #70
post #30

Earlier quoted context omitted.

Yeah, this isn't Linux. Linux is better than this these days.

On the current LTS version of Ubuntu, I had to drop down to the terminal to adjust the mousewheel's scroll speed.

Ubuntu is doing wrong a lot of things, not just this one.
Post reply on HN