Announcement

Collapse
No announcement yet.

Trash not available in this location - began after upgrade from 24.04 to 26.04

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [SOLVED] Trash not available in this location - began after upgrade from 24.04 to 26.04

    I have my Documents, Videos, Downloads, and Music all mounted at a non-default location on a separate BTRFS volume.

    Prior to upgrading to 26.04 trash worked flawlessly. Now when I delete a file in all of those locations, I get the message "Trash not available in this location". I can delete permanently. But not move to trash.

    Is there a way to configure trash to work with my setup?


    My Setup in Brief
    I have all those under /mnt/data/[Documents, Downloads, Music]

    I have a multi boot setup and I use this peculiar setup so that all those directories are accessible from any booted distro.

    #2
    i would go back into the trash settings page and remake all the trash locations

    if you can document what you had to fix and file a bug report, it might be helpful for the next upgrade but going from plasma 5 to 6 is bound to have some collateral
    some stuff i did: https://github.com/droidgoo

    Intel® Core™ i7-14700K | 64 GiB of RAM | AMD RX 6800

    Comment


      #3
      can you post the output of these please
      Code:
      id -u
      Code:
      findmnt -T /mnt/data
      Code:
      ls -ld /mnt/data /mnt/data/.Trash*​
      ▁ ▂ ▄ ▅ ▆ ▇ █ ᄂIПЦX FӨЯ ᄂIFΣ █ ▇ ▆ ▅ ▄ ▂ ▁

      Comment


        #4
        Originally posted by die.boer View Post
        can you post the output of these please
        Code:
        id -u
        Code:
        findmnt -T /mnt/data
        Code:
        ls -ld /mnt/data /mnt/data/.Trash*​
        Code:
        : id -u
        1000
        
        
        : findmnt -T /mnt/data
        TARGET    SOURCE            FSTYPE OPTIONS
        /mnt/data /dev/sda3[/@data] btrfs  rw,relatime,ssd,discard=async,space_cache,subvolid=275,subvol=/@data
        
        : ls -ld /mnt/data /mnt/data/.Trash*​
        drwxr-xr-x 1 root root 104 Aug 27  2023 /mnt/data
        ​

        Comment


          #5
          The mount point is owned by root:root with permissions 755, so the normal user cannot create a trash directory there. That is likely why Dolphin cannot use a top-level trash directory on this volume.

          I'd suggest creating the user-specific trash directory:
          Code:
          ​sudo mkdir /mnt/data/.Trash-1000
          Code:
          sudo chown 1000:1000 /mnt/data/.Trash-1000
          Code:
          sudo chmod 700 /mnt/data/.Trash-1000​
          Then try deleting a file from Downloads using Dolphin and see whether it goes to Trash.

          One caveat: this is a shared multi-boot setup. If other installed distros use a different numeric user ID, they may need their own .Trash-UID directory. The commands above don't change ownership of the existing folders or files.

          Also, is Documents, Downloads, and Music ordinary directories within /mnt/data or separately mounted BTRFS subvolumes?​
          ​
          Last edited by die.boer; Oct 24, 2026, 11:39 PM.
          ▁ ▂ ▄ ▅ ▆ ▇ █ ᄂIПЦX FӨЯ ᄂIFΣ █ ▇ ▆ ▅ ▄ ▂ ▁

          Comment


            #6
            Originally posted by skyfishgoo View Post
            if you can document what you had to fix and file a bug report, it might be helpful for the next upgrade but going from plasma 5 to 6 is bound to have some collateral


            Evidently someone else already had a similar issue and reported it.

            https://www.mail-archive.com/kde-bug...sg1176993.html

            Comment


              #7
              Originally posted by die.boer View Post
              The mount point is owned by root:root with permissions 755, so the normal user cannot create a trash directory there. That is likely why Dolphin cannot use a top-level trash directory on this volume.

              I'd suggest creating the user-specific trash directory:
              Code:
              ​sudo mkdir /mnt/data/.Trash-1000
              Code:
              sudo chown 1000:1000 /mnt/data/.Trash-1000
              Code:
              sudo chmod 700 /mnt/data/.Trash-1000​
              Then try deleting a file from Downloads using Dolphin and see whether it goes to Trash.

              One caveat: this is a shared multi-boot setup. If other installed distros use a different numeric user ID, they may need their own .Trash-UID directory. The commands above don't change ownership of the existing folders or files.

              Also, is Documents, Downloads, and Music ordinary directories within /mnt/data or separately mounted BTRFS subvolumes?​
              ​

              This suggestion worked. Trash is working normally again. Thank you die.boer !!



              Comment


                #8
                Hi all,
                I am glad to see this problem is solved! I have been following this thread because I am very curious to learn how the trash works in Kubuntu.
                I want to ask the experts a few quick questions to understand this better:
                • Will a desktop widget help? Can you confirm if adding a Trash as widget to the desktop would fail to fix this? and still if u deleted tile can be seen through this right?
                • Are files hidden somewhere else? When the system gives the "Trash not available" error, does it completely stop the action? Or does it secretly save the deleted files in a hidden folder on the main system drive (like ~/.local/share/Trash) where they can be recovered later? If it does store them, what is the exact path?
                • trash is automatic? handled by system The system usually must handle trash and its folders on its own automatically during an upgrade or a fresh install, right?
                Last edited by happy winter; Oct 28, 2026, 03:36 AM.
                ─── ■ 🐧 CORE: LINUX KERNEL // FLAVOR: CHOOSE BOTH ■ ─── ⚡ "Stability means Ubuntu and Power means Kubuntu." ⚡​

                Comment


                  #9
                  Originally posted by happy winter View Post
                  Hi all,
                  • Will a desktop widget help? Can you confirm if adding a Trash as widget to the desktop would fail to fix this? and still if u deleted tile can be seen through this right?
                  • Are files hidden somewhere else? When the system gives the "Trash not available" error, does it completely stop the action? Or does it secretly save the deleted files in a hidden folder on the main system drive (like ~/.local/share/Trash) where they can be recovered later? If it does store them, what is the exact path?
                  • trash is automatic? handled by system The system usually must handle trash and its folders on its own automatically during an upgrade or a fresh install, right?
                  Will it help? Probably not, but if it will be fun for you to build, I say have fun!

                  Are files hidden somewhere else? You are given the option to delete them and if you do, they are gone.

                  Trash is handled by the system. This was just a bug. It will be fixed in time.




                  Comment

                  Users Viewing This Topic

                  Collapse

                  There are 0 users viewing this topic.

                  Working...
                  X