ploc
Posts: 10
Joined: Thu Sep 12, 2013 4:36 pm

what sources for apt?

Fri Oct 13, 2017 9:53 pm

I compared installed source from an official raspbian and from a raspbian unattended netinstaller.

It appears that sources differs:

- official raspbian

Code: Select all

> cat /etc/apt/sources.list
deb http://mirrordirector.raspbian.org/raspbian/ jessie main contrib non-free rpi

> cat /etc/apt/sources.list.d/raspi.list
deb http://archive.raspberrypi.org/debian/ jessie main ui
- raspbian unattended netinstaller

Code: Select all

>cat /etc/apt/sources.list  
deb http://mirrordirector.raspbian.org/raspbian jessie main contrib non-free firmware  

>cat /etc/apt/sources.list.d/raspberrypi.org.list  
deb http://archive.raspberrypi.org/debian jessie main
I then have a few questions:

- Why does the rpi section in the official raspbian has been replaced by the firmware section in the raspbian unattended netinstaller?
- Why does the ui section in the official raspbian has been deleted from the raspbian unattended netinstaller? Is it because the raspbian unattended netinstaller is mainly used to install headless servers?
- Why is there two sources (mirrordirector.raspbian.org and archive.raspberrypi.org) with the same main section for the single raspbian operating system? One should be enough!

User avatar
DougieLawson
Posts: 30501
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website

Re: what sources for apt?

Sat Oct 14, 2017 7:19 am

It appears that you are looking at ancient history. Wheezy has expired, Jessie has retired, Stretch is the current version of Raspbian.

Looking at a copy of Raspbian Lite 2017-09-07

/etc/apt/sources.list

Code: Select all

deb http://mirrordirector.raspbian.org/raspbian/ stretch main contrib non-free rpi
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
#deb-src http://archive.raspbian.org/raspbian/ stretch main contrib non-free rpi
/etc/apt/sources.list.d/raspi.list

Code: Select all

deb http://archive.raspberrypi.org/debian/ stretch main ui
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
#deb-src http://archive.raspberrypi.org/debian/ stretch main ui
Microprocessor, Raspberry Pi & Arduino Hacker
Mainframe database troubleshooter
MQTT Evangelist
Twitter: @DougieLawson

Since 2012: 1B*5, 2B*2, B+, A+, Zero*2, 3B*3

Please post ALL technical questions on the forum. Do not send private messages.

DirkS
Posts: 7732
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: what sources for apt?

Sat Oct 14, 2017 9:14 am

ploc wrote:
Fri Oct 13, 2017 9:53 pm
- Why does the rpi section in the official raspbian has been replaced by the firmware section in the raspbian unattended netinstaller?
- Why does the ui section in the official raspbian has been deleted from the raspbian unattended netinstaller? Is it because the raspbian unattended netinstaller is mainly used to install headless servers?
- Why is there two sources (mirrordirector.raspbian.org and archive.raspberrypi.org) with the same main section for the single raspbian operating system? One should be enough!
These repositories are *not* two versions of the same repository. The Raspbian repo is basically a copy of the Debian one with packages compiled for the Pi.
The RPF repo (archive.raspberrypi.org) just contains additions and modifications that the RPF made available.
I assume that the Raspbian follows the section names (main, etc) from the Debian repo. They are not linked to the names in the RPF repo.
You can see for yourself if you point your browser at http://mirrordirector.raspbian.org/raspbian/pool/main/ and http://archive.raspberrypi.org/debian/pool/main/ and check out the various subdirectories there.

ploc
Posts: 10
Joined: Thu Sep 12, 2013 4:36 pm

Re: what sources for apt?

Sun Oct 15, 2017 3:33 pm

Thanks guys for your answers.

Dougie, you gave some information about raspbian and debian versions. Good. But you did not answered the question. And the question applied to jessie also applies to stretch.

Dirks, you said that both repo are different, and I agree, they contains different packages even if the section name is the same. But you end your post by telling me to browse the repos, which is an endless task!

Is there a way to have a global view about:

- What's in the firmware section and why it is not included in the default raspbian install?
- What's in the ui section?
- What's in the rpi section and why it is not included in the default raspbian ua netinst?

DirkS
Posts: 7732
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: what sources for apt?

Sun Oct 15, 2017 5:13 pm

ploc wrote:
Sun Oct 15, 2017 3:33 pm
- What's in the firmware section and why it is not included in the default raspbian install?
- What's in the ui section?
- What's in the rpi section and why it is not included in the default raspbian ua netinst?
As I said the packages in the RPF repo are all additions / modifications made by the RPF. They are not in the Debian repos and as a result of that also not in the Raspbian Repos.

Re rpi / firmware: not really know why that is, but you have to accept that naming and contents can be chosen freely by the repo maintainers.
If the RPF decide to rename ui to pileofrubbish then they can do that. It does not have any impact on other repos (unless they point to the RPF repos of course)

raspbian_ua_netinst is just another distro. It has a different maintainer and has no direct relation to Raspbian / RPF maintainers. It uses some of the Rapsbian stuff and some of RPF stuff and some of its own stuff. There are others that do the same

If you want to know what's packages you could also have a look at the Packages files.
The one for ui (and armhf / Stretch) is at http://archive.raspberrypi.org/debian/d ... f/Packages

ploc
Posts: 10
Joined: Thu Sep 12, 2013 4:36 pm

Re: what sources for apt?

Sun Oct 15, 2017 8:31 pm

Thanks for these informations. I was expecting a source of information to get general informations about sections.

And raspbian-ua-netinst default distro is jessie, not yet stretch.

feelslikeautumn
Posts: 97
Joined: Wed Aug 09, 2017 9:51 pm

Re: what sources for apt?

Sun Oct 15, 2017 9:23 pm

raspberrypi-firmware from raspberrypi.org contains the kernel + firmware (bootloaders). The kernel is from the RPF.

The package from raspbian.org is called raspberrypi-firmware-nokernel. The kernel is contained in the separate linux-image-rpi packages. What you are getting is a more debian like kernel.

The ui section contains modified user interface packages. It's mainly to do with the pixel desktop. The rpi section contains packages specific to the pi, and not part of debian. There is only a couple in there.

If you want to install stretch and are after a pure debian/raspbian install then you can use the netboot installer I posted a few days ago.

User avatar
rpdom
Posts: 11860
Joined: Sun May 06, 2012 5:17 am
Location: Essex, UK

Re: what sources for apt?

Mon Oct 16, 2017 6:55 am

feelslikeautumn wrote:
Sun Oct 15, 2017 9:23 pm
raspberrypi-firmware from raspberrypi.org contains the kernel + firmware (bootloaders). The kernel is from the RPF.
That's somewhat out of date now.
The RPF kernel is in the raspberrypi-kernel package.
The RPF firmware/bootloader is in the raspberrypi-bootloader package.
Both of those are in the 'archive.raspberrypi.org' repository.

feelslikeautumn
Posts: 97
Joined: Wed Aug 09, 2017 9:51 pm

Re: what sources for apt?

Mon Oct 16, 2017 8:36 pm

raspberrypi-firmware is the name of the source package at archive.raspberrypi.org. raspberrypi-firmware-nokernel is the name of the source package at archive.raspbian.org. They both produce binary bootloader packages and userspace packages. Only one produces a kernel package. Also I think the contents of the bootloader packages differ, the raspbian version contains dtbs and overlays.

You can't have the bootloader packages from both repos installed at the same time because they contain the same files. This is why official raspbian doesn't have the raspbian/firmware as an apt source. It has the same files already, just packaged up differently in the raspberrypi archive.

Return to “Raspbian”

Who is online

Users browsing this forum: No registered users and 20 guests