[Discuss] Ubuntu 22.04 apt-get problem

Brendan brendan at ming.org
Mon Apr 3 12:50:18 PDT 2023


>>> 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.




More information about the Discuss mailing list