sed substitution syntax
Clash Royale CLAN TAG#URR8PPP
I found this guide to installing a legacy Nvidia driver to Linux:
https://wiki.debian.org/NvidiaGraphicsDrivers#Version_304.135_.28legacy_GPUs.29-1
And I am having trouble with this particular command.
# aptitude -r install linux-headers-$(uname -r|sed 's/[^-]*-[^-]*-//') nvidia-legacy-304xx-driver
that command is allegedly to grab the particular driver I need.
I suppose "uname" is my user name, but the sed command seems to be missing some values. I'm using the latest Deepin, and when I try to install the drivers with the standard command, it always grabs the latest driver, which this card cannot use.
nvidia deepin
|
show 3 more comments
I found this guide to installing a legacy Nvidia driver to Linux:
https://wiki.debian.org/NvidiaGraphicsDrivers#Version_304.135_.28legacy_GPUs.29-1
And I am having trouble with this particular command.
# aptitude -r install linux-headers-$(uname -r|sed 's/[^-]*-[^-]*-//') nvidia-legacy-304xx-driver
that command is allegedly to grab the particular driver I need.
I suppose "uname" is my user name, but the sed command seems to be missing some values. I'm using the latest Deepin, and when I try to install the drivers with the standard command, it always grabs the latest driver, which this card cannot use.
nvidia deepin
1
What does youruname -r
produce? Then, what doesuname -r|sed 's/[^-]*-[^-]*-//'
produce? (Call the output of that command,WHATEVER
.) Now, do you havelinux-headers-WHATEVER
in the package repository, whereWHATEVER
matches that output? If not, you're going to need to hunt for a suitable alternative.
– roaima
Feb 4 at 21:37
1
If you had to reset your StackExchange account, why not ask the moderators for assistance. The ones we have here are pretty helpful, and I see no reason why they wouldn't be on Stack Exchange too.
– roaima
Feb 4 at 21:42
2
Finally, for now anyway,uname
is nothing to do with your username. It's a command that returns various bits of headline information about your system's currently running kernel. You can read its documentation withman uname
.
– roaima
Feb 4 at 21:45
2
Bottom line: type what it says:u
n
a
m
e
-
r
|
s
e
d
'
s
/
[
^
-
]
*
-
[
^
-
]
*
-
/
/
'
. There are no placeholders in that command.
– G-Man
Feb 4 at 21:46
Thanks I ran it that way, apparently it is throwing some error. I’ll come back here and edit this once I run it again and put that error up.
– Jonny Vee
Feb 5 at 1:07
|
show 3 more comments
I found this guide to installing a legacy Nvidia driver to Linux:
https://wiki.debian.org/NvidiaGraphicsDrivers#Version_304.135_.28legacy_GPUs.29-1
And I am having trouble with this particular command.
# aptitude -r install linux-headers-$(uname -r|sed 's/[^-]*-[^-]*-//') nvidia-legacy-304xx-driver
that command is allegedly to grab the particular driver I need.
I suppose "uname" is my user name, but the sed command seems to be missing some values. I'm using the latest Deepin, and when I try to install the drivers with the standard command, it always grabs the latest driver, which this card cannot use.
nvidia deepin
I found this guide to installing a legacy Nvidia driver to Linux:
https://wiki.debian.org/NvidiaGraphicsDrivers#Version_304.135_.28legacy_GPUs.29-1
And I am having trouble with this particular command.
# aptitude -r install linux-headers-$(uname -r|sed 's/[^-]*-[^-]*-//') nvidia-legacy-304xx-driver
that command is allegedly to grab the particular driver I need.
I suppose "uname" is my user name, but the sed command seems to be missing some values. I'm using the latest Deepin, and when I try to install the drivers with the standard command, it always grabs the latest driver, which this card cannot use.
nvidia deepin
nvidia deepin
edited Feb 4 at 21:50
Rui F Ribeiro
40.5k1479137
40.5k1479137
asked Feb 4 at 21:28
Jonny VeeJonny Vee
61
61
1
What does youruname -r
produce? Then, what doesuname -r|sed 's/[^-]*-[^-]*-//'
produce? (Call the output of that command,WHATEVER
.) Now, do you havelinux-headers-WHATEVER
in the package repository, whereWHATEVER
matches that output? If not, you're going to need to hunt for a suitable alternative.
– roaima
Feb 4 at 21:37
1
If you had to reset your StackExchange account, why not ask the moderators for assistance. The ones we have here are pretty helpful, and I see no reason why they wouldn't be on Stack Exchange too.
– roaima
Feb 4 at 21:42
2
Finally, for now anyway,uname
is nothing to do with your username. It's a command that returns various bits of headline information about your system's currently running kernel. You can read its documentation withman uname
.
– roaima
Feb 4 at 21:45
2
Bottom line: type what it says:u
n
a
m
e
-
r
|
s
e
d
'
s
/
[
^
-
]
*
-
[
^
-
]
*
-
/
/
'
. There are no placeholders in that command.
– G-Man
Feb 4 at 21:46
Thanks I ran it that way, apparently it is throwing some error. I’ll come back here and edit this once I run it again and put that error up.
– Jonny Vee
Feb 5 at 1:07
|
show 3 more comments
1
What does youruname -r
produce? Then, what doesuname -r|sed 's/[^-]*-[^-]*-//'
produce? (Call the output of that command,WHATEVER
.) Now, do you havelinux-headers-WHATEVER
in the package repository, whereWHATEVER
matches that output? If not, you're going to need to hunt for a suitable alternative.
– roaima
Feb 4 at 21:37
1
If you had to reset your StackExchange account, why not ask the moderators for assistance. The ones we have here are pretty helpful, and I see no reason why they wouldn't be on Stack Exchange too.
– roaima
Feb 4 at 21:42
2
Finally, for now anyway,uname
is nothing to do with your username. It's a command that returns various bits of headline information about your system's currently running kernel. You can read its documentation withman uname
.
– roaima
Feb 4 at 21:45
2
Bottom line: type what it says:u
n
a
m
e
-
r
|
s
e
d
'
s
/
[
^
-
]
*
-
[
^
-
]
*
-
/
/
'
. There are no placeholders in that command.
– G-Man
Feb 4 at 21:46
Thanks I ran it that way, apparently it is throwing some error. I’ll come back here and edit this once I run it again and put that error up.
– Jonny Vee
Feb 5 at 1:07
1
1
What does your
uname -r
produce? Then, what does uname -r|sed 's/[^-]*-[^-]*-//'
produce? (Call the output of that command, WHATEVER
.) Now, do you have linux-headers-WHATEVER
in the package repository, where WHATEVER
matches that output? If not, you're going to need to hunt for a suitable alternative.– roaima
Feb 4 at 21:37
What does your
uname -r
produce? Then, what does uname -r|sed 's/[^-]*-[^-]*-//'
produce? (Call the output of that command, WHATEVER
.) Now, do you have linux-headers-WHATEVER
in the package repository, where WHATEVER
matches that output? If not, you're going to need to hunt for a suitable alternative.– roaima
Feb 4 at 21:37
1
1
If you had to reset your StackExchange account, why not ask the moderators for assistance. The ones we have here are pretty helpful, and I see no reason why they wouldn't be on Stack Exchange too.
– roaima
Feb 4 at 21:42
If you had to reset your StackExchange account, why not ask the moderators for assistance. The ones we have here are pretty helpful, and I see no reason why they wouldn't be on Stack Exchange too.
– roaima
Feb 4 at 21:42
2
2
Finally, for now anyway,
uname
is nothing to do with your username. It's a command that returns various bits of headline information about your system's currently running kernel. You can read its documentation with man uname
.– roaima
Feb 4 at 21:45
Finally, for now anyway,
uname
is nothing to do with your username. It's a command that returns various bits of headline information about your system's currently running kernel. You can read its documentation with man uname
.– roaima
Feb 4 at 21:45
2
2
Bottom line: type what it says:
u
n
a
m
e
-
r
|
s
e
d
'
s
/
[
^
-
]
*
-
[
^
-
]
*
-
/
/
'
. There are no placeholders in that command.– G-Man
Feb 4 at 21:46
Bottom line: type what it says:
u
n
a
m
e
-
r
|
s
e
d
'
s
/
[
^
-
]
*
-
[
^
-
]
*
-
/
/
'
. There are no placeholders in that command.– G-Man
Feb 4 at 21:46
Thanks I ran it that way, apparently it is throwing some error. I’ll come back here and edit this once I run it again and put that error up.
– Jonny Vee
Feb 5 at 1:07
Thanks I ran it that way, apparently it is throwing some error. I’ll come back here and edit this once I run it again and put that error up.
– Jonny Vee
Feb 5 at 1:07
|
show 3 more comments
0
active
oldest
votes
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f498679%2fsed-substitution-syntax%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f498679%2fsed-substitution-syntax%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
What does your
uname -r
produce? Then, what doesuname -r|sed 's/[^-]*-[^-]*-//'
produce? (Call the output of that command,WHATEVER
.) Now, do you havelinux-headers-WHATEVER
in the package repository, whereWHATEVER
matches that output? If not, you're going to need to hunt for a suitable alternative.– roaima
Feb 4 at 21:37
1
If you had to reset your StackExchange account, why not ask the moderators for assistance. The ones we have here are pretty helpful, and I see no reason why they wouldn't be on Stack Exchange too.
– roaima
Feb 4 at 21:42
2
Finally, for now anyway,
uname
is nothing to do with your username. It's a command that returns various bits of headline information about your system's currently running kernel. You can read its documentation withman uname
.– roaima
Feb 4 at 21:45
2
Bottom line: type what it says:
u
n
a
m
e
-
r
|
s
e
d
'
s
/
[
^
-
]
*
-
[
^
-
]
*
-
/
/
'
. There are no placeholders in that command.– G-Man
Feb 4 at 21:46
Thanks I ran it that way, apparently it is throwing some error. I’ll come back here and edit this once I run it again and put that error up.
– Jonny Vee
Feb 5 at 1:07