Restic binary is in both /bin and /usr/bin

Bug #1901409 reported by Jivan Pal
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
restic (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

After `apt install restic`, doing `where restic` shows:

```
/usr/bin/restic
/bin/restic
```

Neither is a symlink to the other; they are copies of the same binary. Is this a bug, or is this intentional? If intentional, why is the binary included in two different places?

Revision history for this message
Júlio Maranhão (julio-maranhao) wrote :

I cannot replicate your bug. I'm using Ubuntu 22.04 Desktop. The command "apt-get install restic" only puts the binary (0.12.1) in /usr/bin folder.

I don't recognize the "where" command. Is it "whereis"?

"which restic" returns only "/usr/bin/restic".
"whereis restic" returns "restic: /usr/bin/restic /usr/share/man/man1/restic.1.gz"

I also tested the packages from kinetic (0.13.1) and lunar (0.14). No bug found.

Revision history for this message
Jivan Pal (jivanpal) wrote :

Not a bug; closing. Seems like this is standard fare for Ubuntu. The paths `/bin/restic` and `/usr/bin/restic` are hardlinks to the same inode.

> I don't recognize the "where" command. Is it "whereis"?

`where` shows all paths that a command is found at within `$PATH`, in the order they're found. It's a builtin command of many shells, such as ZSH.

Changed in restic (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.