[Discuss] Ubuntu 22.04 apt-get problem
bctill
bctill at ece.uvic.ca
Tue Mar 28 08:57:07 PDT 2023
Hi Znoteer --
Sorry for the delayed reply. My email went down Sunday afternoon and
didn't come back up until yesterday evening.
A copy of my /etc/apt/sources.list file is attached. As for the two
commands you asked me to run, here are the results:
$ ls -al /etc/apt/sources.d/
ls: cannot access '/etc/apt/sources.d/': No such file or directory
$ sudo apt-cache policy g++ libc6 libc6-dev
g++:
Installed: (none)
Candidate: 4:11.2.0-1ubuntu1
Version table:
4:11.2.0-1ubuntu1 500
500 http://ca.archive.ubuntu.com/ubuntu jammy/main amd64
Packages
libc6:
Installed: 2.35-0ubuntu3.1
Candidate: 2.35-0ubuntu3.1
Version table:
*** 2.35-0ubuntu3.1 100
100 /var/lib/dpkg/status
2.35-0ubuntu3 500
500 http://ca.archive.ubuntu.com/ubuntu jammy/main amd64
Packages
libc6-dev:
Installed: (none)
Candidate: 2.35-0ubuntu3
Version table:
2.35-0ubuntu3 500
500 http://ca.archive.ubuntu.com/ubuntu jammy/main amd64
Packages
This makes me wonder if apt-get install g++ is trying to install the
wrong versions of g++ and/or libc6-dev. Is it trying to install the
versions listed under "Candidate"?
On the other hand, maybe I should "downgrade" libc6 to version
2.35-0ubuntu3. How would I do that, and how can I determine what, if
anything, will break if I do that? Is there a tool that will display my
entire dependency tree?
By the way, I also tried this:
$ sudo apt install --reinstall libc6
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Reinstallation of libc6 is not possible, since it cannot be downloaded.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
I don't know if that gives us a clue or not...
Regards,
-- Bernie.
On 2023-03-26 13:37, Znoteer wrote:
> 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.
-------------- next part --------------
# deb cdrom:[Ubuntu 22.04.1 LTS _Jammy Jellyfish_ - Release amd64 (20220809.1)]/ jammy main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://ca.archive.ubuntu.com/ubuntu/ jammy main restricted
# deb-src http://ca.archive.ubuntu.com/ubuntu/ jammy main restricted
## Major bug fix updates produced after the final release of the
## distribution.
# deb-src http://ca.archive.ubuntu.com/ubuntu/ jammy-updates main restricted
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://ca.archive.ubuntu.com/ubuntu/ jammy universe
# deb-src http://ca.archive.ubuntu.com/ubuntu/ jammy universe
# deb-src http://ca.archive.ubuntu.com/ubuntu/ jammy-updates universe
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://ca.archive.ubuntu.com/ubuntu/ jammy multiverse
# deb-src http://ca.archive.ubuntu.com/ubuntu/ jammy multiverse
# deb-src http://ca.archive.ubuntu.com/ubuntu/ jammy-updates multiverse
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb-src http://ca.archive.ubuntu.com/ubuntu/ jammy-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu jammy-security main restricted
# deb-src http://security.ubuntu.com/ubuntu jammy-security main restricted
deb http://security.ubuntu.com/ubuntu jammy-security universe
# deb-src http://security.ubuntu.com/ubuntu jammy-security universe
deb http://security.ubuntu.com/ubuntu jammy-security multiverse
# deb-src http://security.ubuntu.com/ubuntu jammy-security multiverse
# This system was installed using small removable media
# (e.g. netinst, live or single CD). The matching "deb cdrom"
# entries were disabled at the end of the installation process.
# For information about how to configure apt package sources,
# see the sources.list(5) manual.
More information about the Discuss
mailing list