[Discuss] Ubuntu 22.04 apt-get problem
bctill
bctill at ece.uvic.ca
Mon Apr 3 13:57:17 PDT 2023
On 2023-04-03 12:50, Brendan wrote:
>>>> A few days ago Peter Willis suggested downgrading libc6. I was
>>>> reluctant to do so, because I thought it must be there for a
>>>> reason. Well, I couldn't think of anything else to try, so finally,
>>>> in desperation, I held my nose and ran
>>>>
>>>> $ sudo apt install libc6=2.35-0ubuntu3 libc-bin=2.35-0ubuntu3
>>>>
>>>> and... it worked. After that,
>>>>
>>>> $ sudo apt install g++
>>>>
>>>> succeeded. HOWEVER: notepadqq NO LONGER WORKS.
>>>>
>>>> I have no idea what else I broke by downgrading libc6 and
>>>> libc-bin... how do I find out?
>
> it could be a lot of stuff, but it's hard to know until you encounter
> it. hopefully apt's dependencies were all correct and it didn't miss
> much other than notepadqq that required the newer libraries.
>
> i've had systems get trashed after libc was messed with, it can be a
> very risky thing to do.
>
>
>> I just followed the instructions I found at
>> https://notepadqq.com/wp/download/
>>
>> $ sudo apt install notepadqq
>>
>> I completely agree with your security concerns, and that is exactly
>> why I am learning to compile Linux from source. The system I'm typing
>> this on exists only for this one purpose; there is no personal or
>> proprietary information on it, nor will there ever be.
>
>
> notepadqq has a source repo - you can use that with apt to download the
> source and recompile it.
>
> bionic is their latest version, so you'll need to use that to rebuild
> and for your apt sources. in /etc/apt/sources.list or
> /etc/apt/sources.list.d/notepadqq, have:
>
> deb https://ppa.launchpadcontent.net/notepadqq-team/notepadqq/ubuntu
> bionic main
> deb-src
> https://ppa.launchpadcontent.net/notepadqq-team/notepadqq/ubuntu bionic
> main
>
> then
>
> sudo apt-get update
> mkdir tmpbuild # run build stuff as user, not as root
> cd tmpbuild
> apt-get source notepadqq
> cd notepadqq-1.4.4/
> debuild
>
> and that should build you a new debian package of notepadqq linked
> against whatever libraries you have. (you may need to install some
> other packages, like debscripts, which contains the debuild util)
>
> --
>
> alternately, you could revert libc back to normal and recompile
> whatever the original program was (probably a safer bet). hopefully
> that other program has a source PPA as well and you can do the same
> apt-get source deal for it instead.
>
>
> _______________________________________________
> Discuss mailing list
> Discuss at vlug.org
> http://vlug.org/mailman/listinfo/discuss_vlug.org
Hi Brendan --
I rebooted the box, and now Notepadqq works again. In the days since I
downgraded libc, nothing has crashed or hung, so confidence is
increasing. Maybe I just haven't executed whatever it is that depends
on 3.1, but so far reverting to 3.0 seems to have no downside. Gcc is
now installed and works just fine.
Just the same, these are all very helpful tips that teach me a little
more about how package management works. I'm definitely going to hang
onto these for future reference. Thanks!
Regards,
-- Bernie.
More information about the Discuss
mailing list