https://wiki.debian.org/BuildingTutorial
Here is my error:
"
"apt-get build-dep openjdk-8-jdk
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
builddeps:openjdk-8-jdk : Depends: openjdk-8-jdk but it is not installable or
openjdk-7-jdk but it is not installable
E: Unable to correct problems, you have held broken packages.
I create a chroot with debootstrap, I added unstable to the sources.list
Then I fetched the source
See below there is no error
"
"root@debian-1:/downloads# apt source openjdk-8-jdk
Reading package lists... Done
NOTICE: 'openjdk-8-jdk' packaging is maintained in the 'Bzr' version control system at:
http://bazaar.launchpad.net/~openjdk/openjdk/openjdk8
Please use:
bzr branch http://bazaar.launchpad.net/~openjdk/openjdk/openjdk8
to retrieve the latest (possibly unreleased) updates to the package.
Need to get 71.9 MB of source archives.
Get:1 http://ftp.se.debian.org/debian unstable/main openjdk-8 8u252-b09-1 (dsc) [4675 B]
Get:3 http://ftp.se.debian.org/debian unstable/main openjdk-8 8u252-b09-1 (diff) [245 kB]
Get:2 http://gensho.ftp.acc.umu.se/debian unstable/main openjdk-8 8u252-b09-1 (tar) [71.7 MB]
Fetched 71.9 MB in 1s (92.5 MB/s)
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "sv_SE.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
dpkg-source: info: extracting openjdk-8 in openjdk-8-8u252-b09
dpkg-source: info: unpacking openjdk-8_8u252-b09.orig.tar.xz
dpkg-source: info: unpacking openjdk-8_8u252-b09-1.debian.tar.xz
- 1 cat /etc/apt/sources.list
2 nano /etc/apt/sources.list
3 cd /etc/apt/preferences.d/
4 ll
5 ls
6 nano preferences
7 apt update
8 cd
9 mkdri downloads
10 mkdir downloads
11 cd downloads/
12 c
13 clear
14 apt source openjdk-8-jdk
15 ls /var/
16 cd --
17 chmod -R 777 downloads/
18 cd downloads/
19 ll
20 ls
21 rm * -rf
22 clear
23 apt source openjdk-8-jdk
24 sudo apt-get install dpkg-dev
25 apt-get install dpkg-dev
26 sudo apt autoremove
27 apt autoremove
28 clear
29 apt-get install dpkg-dev
30 apt source openjdk-8-jdk
31 ls
32 rm * -rf
33 clear
34 apt source openjdk-8-jdk
35 apt source openjdk-8-jdk
36 apt update
37 clear
38 apt get dist-upgrade
39 apt-get dist-upgrade
40 apt update
41 clear
42 apt-get dist-upgrade
43 clear
44 apt source openjdk-8-jdk
45 ls
46 rm -rf openjdk-8_8u252-b09*
47 ls
48 pwd
49 ll
50 ls
51 ls -ahgl
52 ls
53 mkdir downloads
54 cd downloads/
55 ll
56 ls
57 cd ..
58 chmod -R 777 downloads/
59 cd downloads/
60 clear
61 apt source openjdk-8-jdk
62 which dpkg-source
63 dpkg-source
64 apt-get install dpkg-dev
65 clear
66 ls
67 rm * -rf
68 clear
69 apt-get install dpkg-dev
70 clear
71 apt source openjdk-8-jdk
72 sudo apt-get install build-essential fakeroot devscripts
73 apt-get install build-essential fakeroot devscripts
74 ls
75 cd openjdk-8
76 cd openjdk-8-8u252-b09/
77 ls
78 apt-get build-dep openjdk-8-jdk
79 apt-get install -t unstable g++-9
80 clear
81 apt-get build-dep openjdk-8-jdk
82 ls
83 cd ..
84 rm -rf openjdk-8*
85 clear
86 apt source openjdk-8-jdk
87 ll
88 ls -l
89 cd openjdk-8-8u252-b09
90 clear
91 ls
92 ls debian/
93 clear
94 ls
95 apt-get build-dep openjdk-8-jdk
96 ll
97 ls
98 grep -r openjdk-8-jdk
99 clear
100 apt-get build-dep openjdk-8-jdk