In this paper, a generalized variable-coefficient Korteweg–de Vries (KdV) equation with the dissipative and/or perturbed/external-force terms is investigated, which arises in arterial mechanics, blood vessels, Bose gases of impenetrable bosons and trapped Bose–Einstein condensates. With the computerized symbolic computation, two variable-coefficient Miura transformations are constructed from such a model to the modified KdV equation under the corresponding constraints on the coefficient functions. Meanwhile, through these two transformations, a couple of auto-Bäcklund transformations, nonlinear superposition formulas and Lax pairs are obtained with the relevant constraints. Furthermore, the one- and two-solitonic solutions of this equation are explicitly presented and the physical properties and possible applications in some fields of these solitonic structures are discussed and pointed out.