Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

linux headers and upgrading nvidia driver

177 views
Skip to first unread message

Thomas Anderson

unread,
Sep 15, 2022, 9:10:05 AM9/15/22
to
First off, I am running Debian 9, Stretch. I know it is old and I should
upgrade and that is something I want to do.

The primary problem is that I have a lot of important systems (email,
cloud), and other less important (web host). Simple dist-upgrades have
always broken my mail server, that I was not immediately able to recover
(fortunately, I had made a backup before). I have tried a couple of
times to upgrade, but all attempts have failed. Thus, why I am still
stick on 9. I don't like it, and still want to upgrade.

All that said, also I have been stuck on installing a simple nvidia
driver, also for months. I can install both the backports version and
the downloaded from nvidia version, but a driver can never be loaded
because of some linux headers error.  I know nvidia and linux have never
been nice to each other.

I think these problems are related.

I currently have 4.19.0-0.bpo.amd64 headers. I try rebuilding them, also
tried going back to 4.9.0-13--but the former still stays. the nvidia
installer always says it can't find the kernel to build the driver. If
my system keeps saying it's 4.19.0-0.bpo, why isn't it in the standard
location? I have tried to locate it, but I cannot find it?

How can i find the linux header, to point my driver to?

thanks in advance, sorry for the long sob story.

Greg Wooledge

unread,
Sep 15, 2022, 9:20:05 AM9/15/22
to
On Thu, Sep 15, 2022 at 03:01:24PM +0200, Thomas Anderson wrote:
> How can i find the linux header, to point my driver to?

apt-get install linux-headers-$(uname -r)

Dan Ritter

unread,
Sep 15, 2022, 9:50:05 AM9/15/22
to
Thomas Anderson wrote:
> The primary problem is that I have a lot of important systems (email,
> cloud), and other less important (web host). Simple dist-upgrades have
> always broken my mail server, that I was not immediately able to recover
> (fortunately, I had made a backup before). I have tried a couple of times to
> upgrade, but all attempts have failed. Thus, why I am still stick on 9. I
> don't like it, and still want to upgrade.


All legitimate mail servers will retry delivery. If you're
concerned about timeliness, spend $10 and a day on setting up a
cloud VM as a secondary MX. That also gives you experience in
setting up your mail server software.

-dsr-

Bret Busby

unread,
Sep 15, 2022, 10:50:05 AM9/15/22
to
Hello.

Have you tried Ubuntu, with your nvidia stuff?

I note that you do not specify the nvidia hardware that you have.

I have two Acer laptops, unfortunately, one of which; my most powerful
computer that I have, I can no longer boot, after an electricity grid
supply failure here, in the last few days - the electricity grid supply
here, is erratic, unstable, unsafe, and, harmful.

The two Acer laptops both have nvidia graphics, and, nvidia Optimus.

When I got the more powerful one, in about 2013, I could not find a
non-MS operating system to run the hardware, at first, and, the MS
Windows version was too difficult to use. After about 18 months (it took
me 18 months, to get the computer operating, so that I could start using
it), I had found that only two non-MS operating systems had drivers for
the CPU; an i7 of the Haskell (?) architecture - dragonflyBSD and Ubuntu
Linux, and, of those, only Ubuntu Linux had drivers for the nvidia
graphics, that ran with Optimus.

So, as it happened, the only way that I could get the i7 laptop (an Acer
Aspire V3-772G) to run an external monitor, was to run Ubuntu Linux; at
that time, v12.04. Prior to getting that computer operational, I had
been running Debian, on most of my computers.

My understanding is that, to run Linux, or, any non-MS operating system,
with nvidia graphics, especially, if you have nvidia Optimus, you need
to run Ubuntu Linux.

I do not know whether Debian, as yet, has the drivers to run the nvidia
graphics, and, in the absence of your nvidia hardware details, I think
you might need to try running Ubuntu with your hardware.

I am no expert, and, after about 20-25 years of using Linux, I still
regard myself as a learner - this opinion is based solely on my personal
experience.

..
Bret Busby
Armadale
West Australia
(UTC+0800)
..............

Charles Curley

unread,
Sep 15, 2022, 11:00:06 AM9/15/22
to
On Thu, 15 Sep 2022 15:01:24 +0200
Thomas Anderson <thomas....@little-beak.com> wrote:

> I have tried a couple of
> times to upgrade, but all attempts have failed. Thus, why I am still
> stick on 9. I don't like it, and still want to upgrade.

The only way to upgrade is one major version at a time. In your case, 9
-> 10, then 10 -> 11. It may be less of a PITA to do a new install to
11.

--
Does anybody read signatures any more?

https://charlescurley.com
https://charlescurley.com/blog/

Anssi Saari

unread,
Sep 15, 2022, 12:40:05 PM9/15/22
to
Bret Busby <br...@busby.net> writes:

> My understanding is that, to run Linux, or, any non-MS operating
> system, with nvidia graphics, especially, if you have nvidia Optimus,
> you need to run Ubuntu Linux.

Maybe in 2012 that was the case? I have 2016 vintage HP zbook gen3 which
worked without issue when I put Debian 11 on it last fall. Nvidia M2000M
video and Optimus, although I'm not clear what this Optimus stuff
does. Video worked poorly with the Nouveau driver so I upgraded to
Nvidia's driver.

External displays work fine, I can connect one to HDMI and another to
Thunderbolt, with a TB to DP adapter cable.

Also, the OP said he has trouble with updating his video driver,
not that his video doesn't work.

Paul Johnson

unread,
Sep 15, 2022, 12:40:05 PM9/15/22
to


On Thu, Sep 15, 2022, 09:46 Bret Busby <br...@busby.net> wrote:
My understanding is that, to run Linux, or, any non-MS operating system,
with nvidia graphics, especially, if you have nvidia Optimus, you need
to run Ubuntu Linux.

Have you looked at the Debian wiki?  Because the Nvidia pages do correctly show how to set up optimus five different ways.


The default render offload option works perfectly and I wished I bothered to try that first instead of fighting constantly with Bumblebee, which is both slow and brittle by comparison.


Thomas Anderson

unread,
Sep 15, 2022, 2:40:05 PM9/15/22
to

I tried the suggestions mentioned in this thread. I forgot to mention the hardware in question. It is a rather modern GTX 1030 low profile Nvidia card. it is nothing fancy at all, and would not expect to game from it, but that is not what I bought it for. Just wanted more than null graphics. Over the past half dozen years, have mostly done things over ssh anyway, just wanted something nicer to work on. Admittedly, it's not even that important, I have had this issue for maybe a year, but when I fired up a new installation this past weekend, in my bid to set everything up again, and saw that the card actually works (on a clean install), I thought I would give it another go.

I tried: sudo apt install linux-headers-$(uname -r)

says there is some c compiler requirement that is not fulfilled. And, there are broken packages that are being held back. I have gone deep into this rabbit hole, and still can't seem to find a solution to whatever shows up.

Where is the kernel located anyway? The nvidia software, to it's credit, has an option flag that will allow me to show the software where the kernel is located. I looked where nvidia suggests it should be, don't remember off the top of my head, and found an older kernel there, like 4.9.xxxx.whatever. But, not the 4.19...version.

I have been using Linux for 20 years, and usually can find a solution, but in this particular case, it's possible that my box is just beyond repair--at least by me =)

Greg Wooledge

unread,
Sep 15, 2022, 2:40:05 PM9/15/22
to
On Thu, Sep 15, 2022 at 08:34:05PM +0200, Thomas Anderson wrote:
> I tried: sudo apt install linux-headers-$(uname -r)
>
> says there is some c compiler requirement that is not fulfilled. And, there
> are broken packages that are being held back.

You probably need build-essential then.

> Where is the kernel located anyway?

/boot

Modules are in /lib/modules.

Andrew M.A. Cater

unread,
Sep 15, 2022, 2:50:05 PM9/15/22
to
On Thu, Sep 15, 2022 at 10:22:09PM +0800, Bret Busby wrote:
> On 15/9/22 21:01, Thomas Anderson wrote:
> > First off, I am running Debian 9, Stretch. I know it is old and I should
> > upgrade and that is something I want to do.
> >
> > The primary problem is that I have a lot of important systems (email,
> > cloud), and other less important (web host). Simple dist-upgrades have
> > always broken my mail server, that I was not immediately able to recover
> > (fortunately, I had made a backup before). I have tried a couple of
> > times to upgrade, but all attempts have failed. Thus, why I am still
> > stick on 9. I don't like it, and still want to upgrade.
> >
> > All that said, also I have been stuck on installing a simple nvidia
> > driver, also for months. I can install both the backports version and
> > the downloaded from nvidia version, but a driver can never be loaded
> > because of some linux headers error.  I know nvidia and linux have never
> > been nice to each other.
> >

You may be able to do an upgrade from 9 to 10 and then reinstall the Nvidia
drivers - at this point, I wouldn't be running a 9 that's internet connected.

> > I think these problems are related.
> >
> > How can i find the linux header, to point my driver to?
> >
> > thanks in advance, sorry for the long sob story.
> >
>
> Hello.
>
> Have you tried Ubuntu, with your nvidia stuff?
>
> I note that you do not specify the nvidia hardware that you have.
>
> I have two Acer laptops, unfortunately, one of which; my most powerful
> computer that I have, I can no longer boot, after an electricity grid supply
> failure here, in the last few days - the electricity grid supply here, is
> erratic, unstable, unsafe, and, harmful.
>

Boo - that's a shame.

> The two Acer laptops both have nvidia graphics, and, nvidia Optimus.
>
> When I got the more powerful one, in about 2013, I could not find a non-MS
> operating system to run the hardware, at first, and, the MS Windows version
> was too difficult to use. After about 18 months (it took me 18 months, to
> get the computer operating, so that I could start using it), I had found
> that only two non-MS operating systems had drivers for the CPU; an i7 of the
> Haskell (?) architecture - dragonflyBSD and Ubuntu Linux, and, of those,
> only Ubuntu Linux had drivers for the nvidia graphics, that ran with
> Optimus.
>
> My understanding is that, to run Linux, or, any non-MS operating system,
> with nvidia graphics, especially, if you have nvidia Optimus, you need to
> run Ubuntu Linux.
>
> I do not know whether Debian, as yet, has the drivers to run the nvidia
> graphics, and, in the absence of your nvidia hardware details, I think you
> might need to try running Ubuntu with your hardware.
>

No, it should run fine - Debian has optimus packages and wiki pages
on how to run everything together. It is really helpful if you can do
a text mode install FIRST and then install the prerequisites for the
Nvidia drivers and at that point install the windowing system using tasksel.

If it fails horribly, that's usually because you've installed a desktop
environment that installs nouveau and fails with odd bugs including lock-ups.

> I am no expert, and, after about 20-25 years of using Linux, I still regard
> myself as a learner - this opinion is based solely on my personal
> experience.
>
> ..
> Bret Busby
> Armadale
> West Australia
> (UTC+0800)
> ..............
>
All the very best, as ever,

Andy Cater

>
0 new messages