Build using new Ubuntu 22.04

Hi All, I have tested openwrt snapshot build on ubuntu new released 22.04 version. The conclusion is so far so good.

One problem on Build system setup :

xxxxx@xxxxx:~$ sudo apt install build-essential ccache ecj fastjar file g++ gawk \ 
gettext git java-propose-classpath libelf-dev libncurses5-dev \
libncursesw5-dev libssl-dev python python2.7-dev python3 unzip wget \
python-distutils-extra python3-setuptools python3-dev rsync subversion \
swig time xsltproc zlib1g-dev -y
......
Package python is not available, but is referred to by another package.
......
However the following packages replace it:
  python2-minimal:i386 python2:i386 python2-minimal python2 dh-python 2to3...  python-is-python3
Package python-distutils-extra is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:   python3-distutils-extra

E: Package 'python' has no installation candidate
E: Package 'python-distutils-extra' has no installation candidate

Remove python and python-distutils-extra from the command set, redo the setup.
And

sudo apt install python2 python2-minimal:i386 python2:i386 dh-python -y

I do not know whether python-distutils-extra is must or not.

Tested Device: Xiaomi 4A Gigabit, mt7621, one take pass, no error.

That wiki advice is old. Python 2.x is not needed any more with OpenWrt master, 22.03 and 21.02. you should only need python3 stuff.

I am already building my firmwares for various router with Ubuntu 22.04.
I use these prerequisite installs in Ubuntu 22.04

sudo apt-get install build-essential libncurses5-dev zlib1g-dev
sudo apt-get install gawk gcc-multilib flex git gettext libssl-dev
sudo apt-get install python3-distutils
4 Likes

Hi.
I have noticed that the make command uses all CPU cores by default, whereas it was using only one previously.

You beat me to the wiki update :slight_smile:
I saw this late other night and meant to get to it. Cheers for updating the Ubuntu bit. I've added an additional information comment to the top of the Distributions list for general use.

3 Likes

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.