PS1 not being set correctly after upgrade from F38

Hello, I noticed after I upgraded my system that the PS1 variable wasn’t being set correctly after I upgraded. I had to go in and manually set it in ~/bashrc. I’m not sure if this is just for me or has anyone else experienced this? I’m not sure where the problem could be.

I updated through the gnome software center and everything went smoothly, but when I started a terminal after the upgrade the PS1 variable was set to default instead of the updated colored prompt

system info:

System Details Report


Report details

  • Date generated: 2023-11-08 07:04:05

Hardware Information:

  • Hardware Model: Dell Inc. OptiPlex 9010
  • Memory: 32.0 GiB
  • Processor: Intel® Core™ i7-3770 × 8
  • Graphics: AMD Radeon™ RX 580 Series
  • Disk Capacity: 2.0 TB

Software Information:

  • Firmware Version: A30
  • OS Name: Fedora Linux 39 (Workstation Edition)
  • OS Build: (null)
  • OS Type: 64-bit
  • GNOME Version: 45.1
  • Windowing System: Wayland
  • Kernel Version: Linux 6.5.10-300.fc39.x86_64

similar to Fedora 39 bash prompt now displays exit codes

Oh, cool. Thanks.

That would solve the problem. It makes me wonder though if there may be some problem with the upgrade script that doesn’t install that package. Because I also upgraded my kde machine with the terminal and it had the colored prompt.

1 Like

Also read the file /usr/share/doc/bash-color-prompt/README.md.

You mean you had bash-color-prompt installed in F38 and it disappeared when you upgraded?

No, it was never installed, until I explicitly installed it through dnf. I was expecting it to install with the upgrade of the system, given it was a advertised feature of F39.

On my system upgraded from F38 that package was installed. I have no clue why yours would not have been.

Me neither. Did you do it through the software center or with the terminal? Because it seemed to work fine when I upgraded through the terminal, but for some reason it didn’t when I upgraded through the software center.

That is the difference. dnf system-upgrade upgrades all installed groups. GNOME Software doesn’t (AFAICT), but it can be done afterward with:

sudo dnf group upgrade 'Fedora Workstation'

I just did a quick test in a VM and after upgrading with Software, that command wants to install bash-color-prompt, loupe, and a whole bunch of fonts.

1 Like

I used dnf system-upgrade, and I note that Chris says there is a difference in what gets updated when using the gnome software app. To me that means gnome software is broken.

Yeah, that’s what I was hoping to bring to the devs attention with this post is that there is something wrong with the way that gnome software updates the system that a feature that they are explicitly advertising for the new release won’t be installed if you upgrade via the more end user friendly way of upgrading.

To me that seems to indicate a bug should be filed against the gnome software app since it fails to do a full system upgrade of every package already installed.

Very few of the devs may read and catch this thread on the forum. All the affected devs will see the bug report.

I made a bug report for gnome-software if anyone has anything to add here it is: System upgrade to fedora 39 from 38 doesn't upgrade the whole system. (bash-color-prompt and other packages missing after upgrade through gnome software) (#2383) · Issues · GNOME / gnome-software · GitLab