11

I am setting up my machine for Ubuntu development. I am following Ubuntu Development Beginnings, but while running sudo pbuilder create command I am getting below error:

$ sudo pbuilder create

I: Distribution is devel.
I: Current time: Thu Jul  9 22:23:59 IST 2020
I: pbuilder-time-stamp: 1594313639
I: Building the build environment
I: running debootstrap
/usr/sbin/debootstrap
E: No such script: /usr/share/debootstrap/scripts/devel
E: debootstrap failed
E: debootstrap.log not present
W: Aborting with an error

Can someone please help me to resolve this issue and set up pbuilder for creating a clean chroot environment in Ubuntu 20.04?

Archisman Panigrahi
  • 25,210
  • 17
  • 90
  • 185
Ninad
  • 111
  • 3
  • Yes . "debootstrap --help" command is giving me various options. like below: Usage: debootstrap [OPTION]... [ [ – Ninad Jul 09 '20 at 18:27
  • Scripts in `/usr/share/debootstrap/scripts/` are all named after releases (e.g. `bionic`, `focal`). Why are you on a `devel` release? ("Distribution is devel"?) – muru Sep 08 '20 at 06:41
  • @muru Please write the solution you told me (--distribution) as an answer, and I will award the bounty. – Archisman Panigrahi Sep 08 '20 at 17:10
  • @ArchismanPanigrahi you had a perfectly fine answer, please undelete it. It's fine, I don't need the bounty. – muru Sep 09 '20 at 05:39

1 Answers1

8

devel is not a version of Ubuntu. You will have to specify an Ubuntu release, e.g.

sudo pbuilder create --distribution focal

Sometimes, this might lead to certain issues with GPG keys related to PPAs. See this for more information.

Archisman Panigrahi
  • 25,210
  • 17
  • 90
  • 185