The integrity of carton packaging is critical to ensuring the efficient circulation of goods in large-scale warehouses. Due to the visual obstructions caused by high stacking of goods, Unmanned Aerial Vehicles (UAVs) are used for aerial visual inspection. However, limited by onboard computational resources, the detection model must be lightweight. Meanwhile, the diversity of printed patterns on cartons leads to complex backgrounds for defect detection and high inter-class similarity of defect features, so the difficulty of detection is further aggravated. Therefore, we propose an Adaptive and Lightweight Dynamic Sharing-You Only Look Once (ALDS-YOLO) method for visually inspecting large warehouses using UAVs. Firstly, an Adaptive and Lightweight Dynamic (ALD) module is designed to dynamically adjust the weight distribution of convolutional kernels. This effectively enhances the adaptive feature extraction ability of the model and the differentiation ability of the features with high similarity between classes, while reducing the computational complexity. Secondly, a Refined Lightweight Path Aggregation Network (RLPANet) is designed to strengthen the focus on channel and spatial information in bidirectional feature interaction. This enables the network to capture key defect features under complex backgrounds more accurately. Finally, a Lightweight Shared Convolutional Detection (LSCD) is introduced to reduce the computational complexity by using Shared Convolution with compensation mechanism, which avoids independent convolutional operations in each layer. Experimental results on the self-constructed Warehouse Storage Defect Inspection Dataset (WSDID) show that, compared with the baseline model YOLOv11n, the proposed ALDS-YOLO reduces the number of parameters by 11.54%, decreases FLOPs by 36.51%, and improves detection accuracy by 2.5%, which demonstrates that the proposed method better balances the detection accuracy and speed. In addition, the generalization experiments on three public datasets, Cardboard Defect, Welding Defect and GC10-DET, further verify the effectiveness and practicality of ALDS-YOLO in industrial scenarios.