Skip to content

Timeshift does not restore /var/cache/apt/archives/partial directory #409

@Tadeusz-D

Description

@Tadeusz-D

Describe the bug
There is no directory /var/cache/apt/archives/partial after fresh system restoration from snapshot to a new drive. This specific directory is originally owned by _apt and usually is empty:
tadeuszd@W530:/var/cache/apt/archives$ ls -lh
razem 188M
[...]
-rw-r----- 1 root root 0 maj 19 21:42 lock
drwx------ 2 _apt root 4,0K maj 19 22:05 partial

Lacking of 'partial' directory causes errors when downloading updates via mintUpdate.
To fix the problem you need to recreate this directory manually.

To Reproduce
Steps to reproduce the behavior:

  1. Go to Timeshift and create snapshot,
  2. Install new drive (in my case: MSDOS partition table with 3 partitions: /boot/efi (FAT32) , / (ext4) , /home (ext4) ),
  3. restore system from snapshot,
  4. boot from a freshly restored system,
  5. run mintUpdate and try to download any update,
  6. mintUpdate throws errors, something like: "Error while downloading file XXX. The file /var/cache/apt/archives/partial/XXX doesn't exist."

Expected behavior
The specific directory structure should be recreated from a snapshot.

System:

  • Linux Distribution: Linux Mint 21.3 (Virginia) x86_64
  • Desktop: Cinnamon 6.0.4
  • Application Version: Timeshift-gtk 24.01.1 mintUpdate 6.0.9

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions