Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
app-arch/dpkg - error: cannot open /var/lib/dpkg/status:
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Bounteous
n00b
n00b


Joined: 09 Feb 2018
Posts: 9
Location: Spain

PostPosted: Sat Oct 20, 2018 4:12 pm    Post subject: app-arch/dpkg - error: cannot open /var/lib/dpkg/status: Reply with quote

Hello,
I am trying to compile the kernel 4.19 from https://kernel.org and that the compile generates a .deb as indicated in this guide:
https://wiki.debian.org/BuildADebianKernelPackage

In a Debian based system this works natively. I'm using app-arch/dpkg v1.19.0.5

make -j`nproc` bindeb-pkg

Code:

/bin/sh ./scripts/package/mkdebian
Using default distribution of 'unstable' in the changelog
Install lsb-release or set $KDEB_CHANGELOG_DIST explicitly
dpkg-buildpackage -r"fakeroot -u" -a$(cat debian/arch) -b -nc -uc
dpkg-buildpackage: warning: using a gain-root-command while being root
dpkg-buildpackage: info: source package linux-4.19.0-rc8
dpkg-buildpackage: info: source version 4.19.0-rc8-1
dpkg-buildpackage: info: source distribution unstable
dpkg-buildpackage: info: source changed by root <root@localhost>
dpkg-architecture: warning: specified GNU system type x86_64-linux-gnu does not match CC system type x86_64-pc-linux-gnu, try setting a correct CC environment variable
dpkg-buildpackage: info: host architecture amd64
dpkg-buildpackage: warning: debian/rules is not executable; fixing that
 dpkg-source --before-build linux-4.19-rc8
dpkg-checkbuilddeps: error: cannot open /var/lib/dpkg/status: No such file or directory
dpkg-buildpackage: warning: build dependencies/conflicts unsatisfied; aborting
dpkg-buildpackage: warning: (Use -d flag to override.)
make[1]: *** [scripts/package/Makefile:80: bindeb-pkg] Error 3
make: *** [Makefile:1357: bindeb-pkg] Error 2
Back to top
View user's profile Send private message
Suicidal
l33t
l33t


Joined: 30 Jul 2003
Posts: 952
Location: /dev/null

PostPosted: Wed Oct 24, 2018 3:09 am    Post subject: Reply with quote

An easier way would be to download the deb, then use deb2targz to extract the source.

Is there a specific reason you want a Debian kernel?
Back to top
View user's profile Send private message
Bounteous
n00b
n00b


Joined: 09 Feb 2018
Posts: 9
Location: Spain

PostPosted: Thu Oct 25, 2018 8:42 pm    Post subject: Reply with quote

In my workstation I have some old equipment with debian and do not have many resources. My idea was that the server with more power that has a gentoo installed compiles the kernel in a .deb.

I have been researching and the 'status' file of 'dpkg' that I lack in the server with gentoo can not work because it is not a system designed for 'dpkg', since it is responsible for saving the status of all system packages in the file 'status' (name, version, dependencies, description, etc ...).

If I create the status file by hand and compile the kernel, the compiler by using 'dpkg', check the 'status' of the installed packages of the system and since it does not find anything, since it is empty, it says that it is necessary to install dependencies for compile the kernel (gcc, bc, etc ...)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum