Container dependencies are not filtered for duplicates
When var/sort_deps, container dependencies are sorted but not filtered for duplicates. As a result, the pre script of container-image tries to install the same package multiple times, and merging essential_deps, deps and arch_deps may not work as intended when used in conjunction with sort_deps.