I've been using unattended upgrades without any problems until now. However, for the second time, I'm encountering an issue where I end up with a summary stating that some packages were not installed or updated. Among other things, it tells me:

Package imagemagick is held back because a related package is held back or due to local apt_preferences(5).

However, when I run sudo apt full-upgrade, everything is up to date and the packages are installed. sudo apt-mark showhold also doesn’t list any packages. So why am I getting the message that packages were held back?

[–] [S] 1 point 5 months ago

I cant install software on that laptop. I have a VPN setup on that laptop, which connects me to my company network. If i disable the VPN and the laptop is in the LAN at home, i can access my home network resources. But the VPN on this machine, prevents me from installing another VPN client like Wireguard and i don't want to change something on the laptop, wich isn't my own device.

However, i can and must use the android phone sometimes, when im underway, to connect to the internet. I can open the wireguard vpn on this phone and can access my resources from home. But this isn't shared with the Wifi hotspot.

I don't know, if a proxy or something similar exists for Android, which allows to share the VPN via WiFi hotspot.

  • source
  • parent
  • context
  •  

    I start a bash shell script via a oneshot unit. I output standard messages currently with

    echo $message
    echo $message >> $logfile.txt
    

    With this I have output on screen and additionally in a logfile. I don't know if there is a better way to do that.

    This works for standard infos fine. Additionally there must be a way to output also error messages and warnings, since when I look into other services, I see red messages for errors and yellow/orange colored messages for warnings.

    How can I do such things with my bash script and output other levels like warnings in yellow and errors in red?

    [–] [S] 1 point 5 months ago

    Syncthing is blocked, or better the ports are blocked on 3 of the hosts (and i cant open them). I can use scp, to copy files. Ports 22 and 443 are the only ports, i can use on all hosts. Additionally, i cant install new software there.

    For the restart, i have found the line exec "$(realpath $0)" "$@". Using the script directly works with that. But since the script is called from a systemd service unit, i don't know if this break the logic. The service unit is from type oneshot and calls the script multiple times (but different parameters), like this:

    ExecStart=/home/username/.local/bin/script.sh variant1
    ExecStart=/home/username/.local/bin/script.sh variant2
    ExecStart=/home/username/.local/bin/script.sh variant3
    

    script.sh does different things, when changing the first parameter. It starts the other variants, when the current variant finishes. Now i don't know, if restarting /home/username/.local/bin/script.sh variant1 will break the logic and the other variants will either not executed or in some unexpected schedule.

  • source
  • parent
  • context
  •  

    I have a bash script, which im using on a handful machines. On all machines, its the same script. Sometimes i need to adjust/update the script. With that, i need to copy the script to all this machines again.

    Is there some way to update the script only on one central location and if this is done, the script checks itself, if there is a updated/changed variant on this central location and if so, copy the new version and restart itself after copy?

     

    For the family album, I’ve been exporting my photos in Darktable to JPEG (8-bit) format at 90% quality. The images are organized into albums online using Nextcloud. But I’m reaching the limits of my available storage space. Typically, each *.jpg export creates a file ranging from about 20MB to 38MB. I haven’t paid much attention to this before, but I now realize that’s a lot. It quickly adds up to a few GB. If I reduce the quality to 85%, the files are just under 25% of the size compared to the 90% quality export. At least on the web, I don’t see any difference at first glance.

    Since some family members occasionally create a photo book from the pictures, I’m not sure how the quality will hold up in print. I won’t know for sure until it’s too late. But if I can’t tell the difference at 100% zoom, I’m hoping the print quality will be at least acceptably similar.

    According to Google Page Speed Insights, it’s recommended to use WebP with a quality of 80%. The resulting files are now only 20% as large as the 90% JPEG exports. I notice slight differences, especially with smooth color gradients, bokeh, and similar elements. There are subtle variations and color shifts, but hardly any artifacts. If I don’t know the original, it doesn’t stand out. But it does in a direct comparison. I can’t estimate how this will affect the print as a photo book. What I do see, however, is a significantly longer export time.

    Question for the community: What would you recommend? Stick with 8-bit JPEG and set the quality to just 85% (or less), or switch to WebP with 80% quality? Maybe you have another or better idea?

    BTW: One additional question. Pixel dimensions of the photos are usually huge in my case. I don't scale down the pictures during export, because i don't know how to do that. Some photos are landscape, some portrait, some are cropped, some not. So every photo can have a other resolution. What should i use to have a max resolution of 2560x1440 Pixel and keep the aspect ratio of landscape and portrait and cropped images. I don't want to upscale images, only downscale, when they are bigger as the max resolution. I don't understand the documentation of the setting.

     

    Probably due to a power outage, I suddenly lost access to a connected USB HDD yesterday. According to parted, I get the message “unknown partition table,” and gdisk says the GPT is corrupted. Using testdisk, I was able to copy the files to another drive and restore the partition table and mount the HDD.

    Is it possible that the partition table was damaged by the power outage, or does this point to a different problem? Can I safely store data on such an HDD again, or should I replace it?

    [–] [S] 2 points 9 months ago (1 child)

    It seems that this doesn't work as expected. Please see my new post from today. I have found also the following issue https://github.com/systemd/systemd/issues/3107. According to this, a monotonic timer doesn't survive a reboot or power off. Please correct me, if I'm wrong.

    If I understand this correctly, only a onCalendar type can be used here. That's a little bit annoying, but as of yet, I haven't found a way around this.

  • source
  • parent
  • context
  • [–] [S] 1 point 9 months ago* (last edited 9 months ago)

    Sorry, i have to ask again. I actually thought I had solved the problem. However, today I discovered that the jobs are overdue and have not been started for several days. When I display the timers with systemctl --user list-timers, I see that the NEXT column is empty::

    NEXT LEFT LAST                         PASSED UNIT                  ACTIVATES              
    -       - Sun 2026-02-01 20:01:48 CET       - backup.timer  backup.service
    

    Since there is no NEXT date, the timer/service will probably not be restarted. The timer unit looks like this:

    [Unit]
    Description="Backup to remote"
    
    [Timer]
    OnUnitActiveSec=3d
    Persistent=true
    
    [Install]
    WantedBy=default.target
    

    As you can see, I am well over the 3 days. When I call systemctl --user status backup.timer, I get:

    ● backup.timer - "Backup to remote"
         Loaded: loaded (/home/username/.config/systemd/user/backup.timer; enabled; preset: enabled)
        Drop-In: /home/username/.config/systemd/user/backup.timer.d
         Active: active (elapsed) since Fri 2026-02-13 16:53:31 CET; 7min ago
     Invocation: 95ae3860c50a454b98078fc2ce3eb3c5
        Trigger: n/a
       Triggers: ● backup.service
    

    To me, this looks perfectly "normal." The only thing that puzzles me is the Active line. Why is the current date (Fri 2026-02-13 16:53:31 CET) set there and not the date on which the job last ran (Sun 2026-02-01 20:01:48 CET)? The NEXT column fills up again when I start systemctl --user restart backup.service. The job is then executed immediately and the column is filled. However, after rebooting the laptop, the column is empty again and the job is no longer started at the given intervals.

  • source
  • Kate and Projects (discuss.tchncs.de)
     

    Until now, I have been using Visual Studio Code to develop my PHP projects. However, I would like to give Kate a try, even though it offers slightly less in terms of overall scope. My PHP projects are usually organized in folders. In VSCode, I can save these as “workspaces” and also save various settings that only apply to that one project/workspace. I couldn't find any workspaces in Kate. I therefore assume that the equivalent is “projects.” Is that correct?

    If so, how can I open a specific project? I haven't found a way to save a project under a specific name, so I have no idea how to open an existing project later.

    Can someone briefly explain to me how working with projects in Kate is supposed to work?

    BTW: I usually edit PHP files in a local directory, but when I save them in VSCode, the changes are also transferred to another computer via SFTP at the same time. Is there a similar option in Kate? I mean, without me having to trigger anything else.

    [–] [S] 3 points 9 months ago

    OK. I think 7 day was a slightly misleading schedule :-) My bad. But yes, you are right, for 7 days, this will work fine. But i think OnUnitActiveSec=7d is more flexible, when i change this to 12 days, 9 days and so on... I should learn to be more precise in my questions. Sorry.

  • source
  • parent
  • context
  • Systemd Timer units (discuss.tchncs.de)
     

    I am trying to create some systemd units that are supposed to start scripts at certain intervals. With Cron, I used an expression like 0 3 */7 * * to start a job every 7 days at 3 a.m. That worked great. With OnCalendar, I have no idea how to implement "every 7 days". Or can I use OnUnitActiveSec here? Additional problem: The computer is not always on at the specified time. The job should therefore be repeated as soon as the computer is available again. I have set Persistent=true for this purpose. However, I suspect that OnUnitActiveSec is reset every time I restart the computer. Or does OnUnitActiveSec refer to the time when the unit was activated with systemctl enabled test.timer?

     

    Coming from years of using GNOME, so please forgive me, if this is a stupid question.

    When I have kwrite open and multiple documents open (one in each tab) and i press usual shortcuts like strg+c, strg+v, strg+s and so on, I get a annoying popup, which tells me that the shortcut has multiple meanings and it can't do what I want. If I have only 1 document open, it works fine.

    From my point of view, this looks like a bug. Or do I have to setup something special?

    Im using Arch Linux with kwrite 25.12.1

    Pixelfed Android App (discuss.tchncs.de)
     

    When I add images to my post, they sometimes don't appear in the mobile app on Android. I only see them when I edit the post. It probably has something to do with the size of the image. If I load smaller versions into a post, they are easily loaded. My tests included images in JPG format with a resolution of 6542x4365. File size at about 15MB. I assumed that the images would be automatically reduced before uploading and that EXIF data would be automatically removed. Obviously, this is not so. I was able to download the images in the browser. All Exif data was included, the file was also identical in size.

    Is there a setting somewhere that can be automatically adjusted before uploading?

    What I also noticed is that there is no way in Android to display the alt text of an image or to enlarge it full screen. Surely the latter is a mistake? Is it?

     

    Coming from Manjaro, I had Manjaro in dual boot with Windows for a few years now. I have now also installed Arch Linux. During the Arch installation, I skipped the part with the boot partition and the bootloader. I have been using the bootloader/grub from Manjaro. That works quite well.

    But now I want to switch to a bootloader from Arch. With the Arch bootloader I would like to continue to have the choice between Arch, Manjaro and Windows.

    I assume that I have to install a corresponding bootloader for Arch in the EFI parallel to the others. But how should I proceed in detail? I have not yet been able to find any corresponding howtos. Which bootloader would you recommend?

     

    I try to download a file with curl directly after logging into Gnome. This usually fails because mostly the WiFi connection is only established after login. If I wait long enough in the login screen before logging in, the connection is already established and the download works.

    So far I have used Manjaro. WiFi was already active long before the login screen of GDM was even displayed. The download therefore always worked.

    The download is initiated with a *.desktop file in ~/.config/autostart.

    Is there another way to start the download after the user is logged in and the WiFi connection is really ready?

    view more: next ›