Solved changing to another base distro

Solved issue

nstify

New Member
Joined
Aug 7, 2024
Messages
12
Reaction score
4
Credits
140
Good afternoon,

I am quite new to the Linux world, and in the past few months, I have been trying a lot of Linux flavors. I finished up on CBPP, which, in my opinion, was the perfect distro for me. I don't like desktop icons, and I don't like bloated screens, so openbox was the right choice. I tried a lot of personalizations, broke the system a lot of times, where I didn't know how to get back. (Thank God I was testing in VMware, so I always made a copy of the base installation)

Recently I reinstalled CBPP and I got to the problem where the upgrade function shows me that Kernel 6.5.0 can not be found. When I search for the Kernels, he is showing me 6.1 and 6.7.9 (or something similar), but the command also shows me that no kernel is installed. (These are problems way beyond my Linux knowledge, even with googling and testing) Until now, I have managed a lot of problems which I all wrote down in my Pastebin file. But this one is a big question mark.

I had now the idea, as Ubuntu has newer packages and as I am using Snap on cbpp as well, to change to a minimal Ubuntu server installation and then building up openbox like in CBPP. But I think that there is a lot of customized stuff in CBPP. Is there a way to list all the packages installed and then apt install these them in the Ubuntu base? Also, on the configuration side, is there a way to get all the configurations (for example, from a freshly installed cbpp installation) and copy them into the new system so that it looks the same? I was trying to build it up from scratch, but I guess there are too many packages missing that I even don't know... yet...

I do not need a complete instruction guide, I can read, and I like to learn, not just copy and paste. I would be highly thankful for some good hints that will bring me forward on my journey with Linux. I was planning on switching completely to Linux in 2025, as I don't like Windows 11 ;)

Thanks a lot, and have a nice day
 


Hi and welcome to forums.
If you're new to Linux it might be better to use a distro that outright works and then learning some basics instead of outright troubleshooting advanced issues.

Copying configuration files from one distro to another to fix the other one is unlikely to work.

I don't like desktop icons, and I don't like bloated screens, so openbox was the right choice.
It's not clear what you mean because openbox is window manager not a desktop
Link below explains this including instructions how to install it on Debian.
 
Hi and welcome to forums.
If you're new to Linux it might be better to use a distro that outright works and then learning some basics instead of outright troubleshooting advanced issues.

Copying configuration files from one distro to another to fix the other one is unlikely to work.


It's not clear what you mean because openbox is window manager not a desktop
Link below explains this including instructions how to install it on Debian.
Hi, thanks for the answer.

the problem that I had was more a distro problem than a config problem, so I thought, it would be possible to simply transfer the configfiles from one distro to another.

Hi, yes, excuse me, I expressed myself incorrectly, I know that openbox is a simple windowmanager, I was still talking as a Windows user ;) I meant as desktop, the background with the icons (desktop in windows) that I don't like and as openbox does not have a desktop, I prefer openbox.

I already have openbox running on a ubuntu minimal server as a base. It is running fine, but its a long was until I am on the same look than CBPP when I build it up from scratch. But I guess it is better that way
 
Hi! & Welcome to Linux.org nastify- :)

The download for Crunch-bang is here:

Crunch Bang Plus is here:

I would go with Crunch Bang Plus as it is based on Debian Stable.

The kernel that comes with your fresh installation of Crunch Bang should be in your root file system under the /Boot directory.
Hi @Alexzee thanks alot,

I was running CBPP now for a good time, but after my last reinstall I has the issue that I got the 6.5 Kernel in the Boot Folder and when he updates the initrd.img after the "apt upgrade", the system told me that 6.5 couldn't be found. After searching for the headers on the system, it was showing me 6.1 and 6.7.9 (I think the number were like that). When I checked for the installed ones, it showed me none. That was to high for me ;)

give me a second, I will do aquick cbpp setup and I will tell you the details, not that I am messing some terms up here ;)
 
Last edited:
Hi @Alexzee thanks alot,

I was running CBPP now for a good time, but after my last reinstall I has the issue that I got the 6.5 Kernel in the Boot Folder and when he updates the initrd.img after the "apt upgrade", the system told me that 6.5 couldn't be found. After searching for the headers on the system, it was showing me 6.1 and 6.7.9 (I think the number were like that). When I checked for the installed ones, it showed me none. That was to high for me ;)

give me a second, I will do aquick cbpp setup and I will tell you the details, not that I am messing some terms up here ;)
You're welcome.

Usually Debian based systems come with a standard kernel.
There should be a kernel that you can roll back to if necessary too.

Did you check the integrity of the .iso file ( the download of CBPP) to ensure that it was not corrupt?

What's does the command line return when you run these 2 commands?
Code:
dpkg --list | grep linux-image

And:
Code:
uname -a
 
Last edited:
You're welcome.

Usually Debian based systems come with a standard kernel.
There should be a kernel that you can roll back to if necessary too.

Did you check the integrity of the .iso file ( the download of CBPP) to ensure that it was not corrupt?

What's does the command line return when you run these 2 commands?
Code:
dpkg --list | grep linux-image

And:
Code:
uname -a

Good morning,

I fell asleep yesterday, so I couldn't install CBPP, I will do it as soon as I am back home and tell you all the errors and what the commands return.

thank you very much for your kind support
 
Hi again,
the steps that I have made are installing cbpp and then run the startup script:

on the CBPP Hello screen:
- update software sources Y (sudo apt update)
- update your system Y (sudo apt dist-upgrade)

sudo dpkg-reconfigure locales

sudo apt upgrade -y

tomato@crunch:~$ dpkg --list | grep linux-image
ii linux-image-6.5.0-0.deb12.4-amd64 6.5.10-1~bpo12+1 amd64 Linux 6.5 for 64-bit PCs (signed)

tomato@crunch:~$ uname -a
Linux home 6.5.0-0.deb12.4-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.5.10-1~bpo12+1 (2023-11-23) x86_64 GNU/Linux

when I enter this f.ex.:
sudo apt install -y linux-headers-$(uname -r) v4l2loopback-dkms

I get:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package linux-headers-6.5.0-0.deb12.4-amd64
E: Couldn't find any package by glob 'linux-headers-6.5.0-0.deb12.4-amd64'

Files in the /boot/ dir:
config-6.5.0-0.deb12.4-amd64
initrd.img-6.5.0-0.deb12.4-amd64
System.map-6.5.0-0.deb12.4-amd64
vmlinuz-6.5.0-0.deb12.4-amd64

I never had that problem with the previous versions.

thanks alot
 
here are the results:

tomato@crunch:~$ cat /etc/apt/sources.list
#deb cdrom:[Debian GNU/Linux 12 Bookworm - Official Snapshot amd64 LIVE/INSTALL Binary 20240202-02:08]/ bookworm contrib main non-free non-free-firmware

deb http://deb.debian.org/debian/ bookworm main
deb-src http://deb.debian.org/debian/ bookworm main

deb http://security.debian.org/debian-security bookworm-security main
deb-src http://security.debian.org/debian-security bookworm-security main

# bookworm-updates, to get updates before a point release is made;
# see https://www.debian.org/doc/manuals/debian-reference/ch02.en.html#_updates_and_backports
deb http://deb.debian.org/debian/ bookworm-updates main
deb-src http://deb.debian.org/debian/ bookworm-updates main

# This system was installed using small removable media
# (e.g. netinst, live or single CD). The matching "deb cdrom"
# entries were disabled at the end of the installation process.
# For information about how to configure apt package sources,
# see the sources.list(5) manual.


tomato@crunch:~$ apt policy linux-image-6.5.0-0.deb12.4-amd64
linux-image-6.5.0-0.deb12.4-amd64:
Installed: 6.5.10-1~bpo12+1
Candidate: 6.5.10-1~bpo12+1
Version table:
*** 6.5.10-1~bpo12+1 100
100 /var/lib/dpkg/status
 
You're missing debian-backports component in your sources.list because your current kernel is from backports, that's why apt it can't find kernel headers for that kernel.

Edit your sources with:

Bash:
sudo apt edit-sources

This will open /etc/apt/sources.list in nano editor, here next step is to append the following lines to the file:

Bash:
# bookworm-backports, previously on backports.debian.org
deb http://deb.debian.org/debian/ bookworm-backports main
deb-src http://deb.debian.org/debian/ bookworm-backports main

When done press CTRL + X and hit Enter to save configuration and then run:

Bash:
sudo apt update
sudo apt install linux-headers-$(uname -r)

This should install the headers for your current kernel which is the only one kernel that you have, which is 6.5.10-1~bpo12+1
You do not have any other kernels installed other than this one, it could be you deleted older kernels at some point.

---

2 Questions:
Are you now doing this on Ubuntu server or on Crunchbangplusplus like @Alexzee suggested?
Does the system boot with 6.5.10-1~bpo12+1 kernel?
 
Hi, thanks, I will try.
It is the original Crunchbangplusplus release on debian ( debian v12.1 installation iso)

it starts with 6.5.0-0.deb12.4-amd64
 
sudo apt edit-sources

File looks now like this:

#deb cdrom:[Debian GNU/Linux 12 Bookworm - Official Snapshot amd64 LIVE/INSTALL Binary 20240202-02:08]/ bookworm contrib main n>

deb http://deb.debian.org/debian/ bookworm main
deb-src http://deb.debian.org/debian/ bookworm main

deb http://security.debian.org/debian-security bookworm-security main
deb-src http://security.debian.org/debian-security bookworm-security main

# bookworm-updates, to get updates before a point release is made;
# see https://www.debian.org/doc/manuals/debian-reference/ch02.en.html#_updates_and_backports
deb http://deb.debian.org/debian/ bookworm-updates main
deb-src http://deb.debian.org/debian/ bookworm-updates main

# bookworm-backports, previously on backports.debian.org
deb http://deb.debian.org/debian/ bookworm-backports main
deb-src http://deb.debian.org/debian/ bookworm-backports main

# This system was installed using small removable media
# (e.g. netinst, live or single CD). The matching "deb cdrom"
# entries were disabled at the end of the installation process.
# For information about how to configure apt package sources,
# see the sources.list(5) manual.

when I save and leave the edit I get these errors:

W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:15 and /etc/apt/sources.list.d/nonfree-n-backports.list:5
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:15 and /etc/apt/sources.list.d/nonfree-n-backports.list:5
W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:15 and /etc/apt/sources.list.d/nonfree-n-backports.list:5
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:15 and /etc/apt/sources.list.d/nonfree-n-backports.list:5
W: Target Translations (main/i18n/Translation-de_DE) is configured multiple times in /etc/apt/sources.list:15 and /etc/apt/sources.list.d/nonfree-n-backports.list:5
W: Target Translations (main/i18n/Translation-de) is configured multiple times in /etc/apt/sources.list:15 and /etc/apt/sources.list.d/nonfree-n-backports.list:5
Failed to parse /etc/apt/sources.list. Edit again? [Y/n]
 
I read about that solution on google and I was tring it out before, but I was attending the end of my knowledge very fast ;)
 
I read about that solution on google and I was tring it out before, but I was attending the end of my knowledge very fast ;)
Ok so you have backports set up in /etc/apt/sources.list.d/ so we need to look into it...

Please share output of:
Bash:
ls /etc/apt/sources.list.d/
cat /etc/apt/sources.list.d/nonfree-n-backports.list
 
Hi there,
I reinstalled the version 12.0 and went from there, somehow it is working now... don't ask me why ;)

I thank you very much for the help and the tips. I think I will read a bit more about these commands you send me. To learn what they exactly do and when to use them.

Again, thank you very much,
have a nice day
 
Good morning,

I fell asleep yesterday, so I couldn't install CBPP, I will do it as soon as I am back home and tell you all the errors and what the commands return.

thank you very much for your kind support
You're welcome-
 
Did you verify the .iso images of the CrunchBang downloads before the installations?

--*-In the future keep in mind that if the signatures of the md5um or SHAsums don't match the .iso is in most cases corrupt.---
 

Members online


Latest posts

Top