By convention, gauge pressure references atmospheric pressure- for "gauge pressure p in this case is the sum of major and minor losses" to be valid, the duct must discharge to atmosphere. This requires that your Minor losses include the discharge loss, where the duct delivers/returns air to atmospheric conditions (and all kinetic energy/dynamic pressure is lost),where $v_{discharge}=0$, $P_{discharge}=P_{atm}$, and $T_{discharge}=T_{atm}$.
The fan increases the pressure above atmospheric pressure enough to induce a desired flow rate. The manometer measures the difference in pressure between two points- in this case: $P_{manometer} - P_{discharge} = \Delta P$, where $P_{manometer} \approx P_{fan}$.
The pressure difference, $\Delta P$ is a physical measure of flow potential between points. For your problem statement to hold, all of the pressure differential is lost.
These pressure losses are due to Major (friction) losses and Minor (geometry restriction) losses. Without knowing other factors like duct geometry, roughness, velocity, etc. you cannot determine what the Major and Minor losses are, you can only state:
$$P_{gauge}=\Delta P=Major Loss+Minor Loss$$
Assuming uniform roughness and restrictions throughout the duct, moving the manometer closer to the discharge of the duct results in lower gauge pressures.
(Forgive the pitiful diagram!)
Perhaps a more intuitive way to envision your question:
If you wanted to determine losses in a given section of duct, you could place two manometers at chosen locations. Solving for $P_{manometer}$ at both manometers, you can calculate $\Delta P$ between manometers, again, the sum of Major and Minor losses in that section.