[Discuss] Ubuntu 22.04 apt-get problem
Znoteer
znoteer at mailbox.org
Sun Mar 26 13:37:43 PDT 2023
On Sun, Mar 26, 2023 at 08:56:37AM -0700, bctill wrote:
> Hi Znoteer --
>
> Good call. I hadn't thought to try that. Here's what happens when I do:
>
> $ sudo apt-get update
> [sudo] password for user:
[snip]
>
> However it makes no difference to the apt-get install g++ command. I still
> get the same results.
>
Can you show us your /etc/apt/sources.list and any files in /etc/apt/sources.d/?
Also, please try running "sudo apt-cache policy g++ libc6 libc6-dev" and show us the output, please.
And just a note: "apt-get" and just "apt" are very similar programmes. "apt" is newer. Before apt, people used apt-get for interactive use. I am not sure of the details why, but now that the "apt" command is available, the docs recommend using it for interactive use, and "apt-get" for use in scripts. You'll be okay using apt-get. I just wanted to point out that recommendation and the fact that some people seem to think apt is more user friendly. I don't understand that, but oh well.
--
Znoteer
znoteer at mailbox.org
More information about the Discuss
mailing list