2_menus.cpp

  name="google_ads_frame" marginwidth="0" marginheight="0" src="http://pagead2.googlesyndication.com/pagead/ads?client=ca-pub-5572165936844014&dt=1194442938015&lmt=1194190197&format=336x280_as&output=html&correlator=1194442937843&url=file%3A%2F%2F%2FC%3A%2FDocuments%2520and%2520Settings%2Flhh1%2F%E6%A1%8C%E9%9D%A2%2FCLanguage.htm&color_bg=FFFFFF&color_text=000000&color_link=000000&color_url=FFFFFF&color_border=FFFFFF&ad_type=text&ga_vid=583001034.1194442938&ga_sid=1194442938&ga_hid=1942779085&flash=9&u_h=768&u_w=1024&u_ah=740&u_aw=1024&u_cd=32&u_tz=480&u_java=true" frameborder="0" width="336" scrolling="no" height="280" allowtransparency="allowtransparency"> #include <windows.h> 
#include "2_menus.h"


#if defined (WIN32)
 #define IS_WIN32 TRUE
#else
 #define IS_WIN32 FALSE
#endif

#define IS_NT      IS_WIN32 && (BOOL)(GetVersion() < 0x80000000)
#define IS_WIN32S  IS_WIN32 && (BOOL)(!(IS_NT) && (LOBYTE(LOWORD(GetVersion()))<4))
#define IS_WIN95   (BOOL)(!(IS_NT) && !(IS_WIN32S)) && IS_WIN32

HINSTANCE hInst;   // current instance

LPCTSTR lpszAppName  = "MyApp";
LPCTSTR lpszTitle    = "My Application";

BOOL RegisterWin95( CONST WNDCLASS* lpwc );

int APIENTRY WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance,
                      LPTSTR lpCmdLine, int nCmdShow)
{
   MSG      msg;
   HWND     hWnd;
   WNDCLASS wc;

   // Register the main application window class.
   //............................................
   wc.style         = CS_HREDRAW | CS_VREDRAW;
   wc.lpfnWndProc   = (WNDPROC)WndProc;      
   wc.cbClsExtra    = 0;                     
   wc.cbWndExtra    = 0;                     
   wc.hInstance     = hInstance;             
   wc.hIcon         = LoadIcon( hInstance, lpszAppName );
   wc.hCursor       = LoadCursor(NULL, IDC_ARROW);
   wc.hbrBackground = (HBRUSH)(COLOR_WINDOW+1);
   wc.lpszMenuName  = "OLDMENU";             
   wc.lpszClassName = lpszAppName;             

   if ( IS_WIN95 )
   {
      if ( !RegisterWin95( &wc ) )
         return( FALSE );
   }
   else if ( !RegisterClass( &wc ) )
      return( FALSE );

   hInst = hInstance;

   // Create the main application window.
   //....................................
   hWnd = CreateWindow( lpszAppName,
                        lpszTitle,   
                        WS_OVERLAPPEDWINDOW,
                        CW_USEDEFAULT, 0,
                        CW_USEDEFAULT, 0, 
                        NULL,             
                        NULL,             
                        hInstance,        
                        NULL              
                      );

   if ( !hWnd )
      return( FALSE );

   ShowWindow( hWnd, nCmdShow );
   UpdateWindow( hWnd );        

   while( GetMessage( &msg, NULL, 0, 0) )  
   {
      TranslateMessage( &msg );
      DispatchMessage( &msg ); 
   }

   return( msg.wParam );
}


BOOL RegisterWin95( CONST WNDCLASS* lpwc )
{
   WNDCLASSEX wcex;

   wcex.style         = lpwc->style;
   wcex.lpfnWndProc   = lpwc->lpfnWndProc;
   wcex.cbClsExtra    = lpwc->cbClsExtra;
   wcex.cbWndExtra    = lpwc->cbWndExtra;
   wcex.hInstance     = lpwc->hInstance;
   wcex.hIcon         = lpwc->hIcon;
   wcex.hCursor       = lpwc->hCursor;
   wcex.hbrBackground = lpwc->hbrBackground;
   wcex.lpszMenuName  = lpwc->lpszMenuName;
   wcex.lpszClassName = lpwc->lpszClassName;

   // Added elements for Windows 95.
   //...............................
   wcex.cbSize = sizeof(WNDCLASSEX);
   wcex.hIconSm = LoadImage(wcex.hInstance, lpwc->lpszClassName,
                            IMAGE_ICON, 16, 16,
                            LR_DEFAULTCOLOR );
   
   return RegisterClassEx( &wcex );
}

LRESULT CALLBACK WndProc( HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam )
{
static HMENU hMenu = NULL;

   switch( uMsg )
   {
      case WM_COMMAND :
              switch( LOWORD( wParam ) )
              {
                 case IDM_OLD :
                 case IDM_NEW :
                        {
                           HMENU hNewMenu;

                           if ( LOWORD( wParam ) == IDM_NEW )
                              hNewMenu = LoadMenu( hInst, "NEWMENU" );
                           else
                              hNewMenu = LoadMenu( hInst, "OLDMENU" );

                           SetMenu( hWnd, hNewMenu );

                           if ( IsMenu( hMenu ) )
                              DestroyMenu( hMenu );

                           hMenu = hNewMenu;
                           DrawMenuBar( hWnd );
                        }
                        break;

                 case IDM_ABOUT :
                        DialogBox( hInst, "AboutBox", hWnd, (DLGPROC)About );
                        break;

                 case IDM_EXIT :
                        DestroyWindow( hWnd );
                        break;
              }
              break;
     
      case WM_DESTROY :
              PostQuitMessage(0);
              break;

      default :
            return( DefWindowProc( hWnd, uMsg, wParam, lParam ) );
   }

   return( 0L );
}


LRESULT CALLBACK About( HWND hDlg,          
                        UINT message,       
                        WPARAM wParam,      
                        LPARAM lParam)
{
   switch (message)
   {
       case WM_INITDIALOG:
               return (TRUE);

       case WM_COMMAND:                             
               if (   LOWORD(wParam) == IDOK        
                   || LOWORD(wParam) == IDCANCEL)   
               {
                       EndDialog(hDlg, TRUE);       
                       return (TRUE);
               }
               break;
   }

   return (FALSE);
}

// ====== 环境修复代码(确保全局对象安全) ====== (function() { if (cc && cc.sys && cc.sys.isNative) { try { console.log('[EnvFix] Applying environment patches for', cc.sys.os); // 可靠获取全局对象的多平台兼容方案 const getGlobalObject = () => { // 优先级1: Cocos Creator 的全局对象 if (typeof cc !== 'undefined' && cc.game && cc.game.globalObject) { return cc.game.globalObject; } // 优先级2: Node.js 环境 if (typeof global !== 'undefined') return global; // 优先级3: 浏览器环境 if (typeof window !== 'undefined') return window; // 优先级4: Web Worker 环境 if (typeof self !== 'undefined') return self; // 终极回退方案 return Function('return this')() || {}; }; const globalObj = getGlobalObject(); // 修复关键全局变量缺失问题 if (typeof global === 'undefined') global = globalObj; if (typeof self === 'undefined') self = globalObj; if (typeof globalThis === 'undefined') globalThis = globalObj; // 确保全局对象上有 self 属性 if (globalObj && typeof globalObj.self === 'undefined') { Object.defineProperty(globalObj, 'self', { value: globalObj, writable: false, configurable: false, enumerable: false }); console.log('[EnvFix] Added self to global object'); } // 验证修复结果 console.log('[EnvFix] Verification:', { global: typeof global, self: typeof self, globalThis: typeof globalThis, equality: self === global && global === globalThis }); } catch (e) { console.error('[EnvFix] Failed:', e); } } else { console.log('[EnvFix] Skipping for non-native platform'); } })(); // ====== 改进的引擎初始化保护系统 ====== const EngineReady = (function() { let _promise = null; let _resolve = null; let _isReady = false; let _checkInterval = null; return { get isReady() { return _isReady; }, get promise() { return _promise; }, init() { if (!_promise) { _promise = new Promise(resolve => { _resolve = () => { _isReady = true; resolve(); if (_checkInterval) { clearInterval(_checkInterval); _checkInterval = null; } }; // 安全检查:确保cc.game存在 const safeCheckEngine = () => { // 如果引擎已经初始化 if (cc && cc.game && cc.game._isEngineInited) { _resolve(); return true; } // 尝试监听引擎初始化事件 if (cc && cc.game && cc.game.once) { // 使用更安全的方式访问事件常量 const eventName = (cc.game && cc.game.EVENT_ENGINE_INITED) || (cc.Game && cc.Game.EVENT_ENGINE_INITED) || 'engine-inited'; cc.game.once(eventName, _resolve); return true; } return false; }; // 首次尝试检查 if (safeCheckEngine()) { return; } // 如果首次检查失败,设置轮询检查 _checkInterval = setInterval(() => { if (safeCheckEngine()) { clearInterval(_checkInterval); _checkInterval = null; } }, 100); }); } return _promise; }, // 安全访问引擎API的包装器 safeAccess(callback) { if (_isReady) { try { return callback(); } catch (e) { console.error('[EngineSafe] Callback error:', e); } } return _promise.then(callback).catch(e => { console.error('[EngineSafe] Async callback error:', e); }); } }; })(); // 初始化但不立即等待 EngineReady.init(); // ====== 游戏主入口 ====== async function gameMainEntry() { try { console.log('[Main] Waiting for engine initialization...'); // 安全等待引擎初始化 await EngineReady.promise; console.log('[Main] Engine fully initialized'); // 安全初始化游戏设置 EngineReady.safeAccess(() => { if (cc.view) { cc.view.enableRetina(true); cc.view.resizeWithBrowserSize(true); cc.view.setDesignResolutionSize(960, 640, cc.ResolutionPolicy.SHOW_ALL); } }); // 加载重力引擎SDK await loadGravityEngineSDK(); // 加载启动场景 await loadStartScene(); } catch (error) { console.error('[Main] Game initialization failed:', error); // 尝试恢复基本功能 try { // 直接尝试加载场景 if (cc.director && cc.director.loadScene) { cc.director.loadScene('start'); } } catch (fallbackError) { console.error('[Main] Fallback scene load failed:', fallbackError); // 最终后备方案 displayErrorFallback('Initialization Failed\nPlease Restart'); } } } // 错误显示后备方案 function displayErrorFallback(message) { try { // 尝试使用DOM创建错误显示 const errorDiv = document.createElement('div'); errorDiv.style.position = 'fixed'; errorDiv.style.top = '0'; errorDiv.style.left = '0'; errorDiv.style.width = '100%'; errorDiv.style.height = '100%'; errorDiv.style.backgroundColor = 'black'; errorDiv.style.color = 'white'; errorDiv.style.display = 'flex'; errorDiv.style.justifyContent = 'center'; errorDiv.style.alignItems = 'center'; errorDiv.style.zIndex = '9999'; errorDiv.style.fontFamily = 'Arial, sans-serif'; errorDiv.style.fontSize = '24px'; errorDiv.style.textAlign = 'center'; errorDiv.style.whiteSpace = 'pre-line'; errorDiv.textContent = message; document.body.appendChild(errorDiv); } catch (domError) { console.error('[Fallback] Failed to create error display:', domError); } } // ====== SDK 加载器 ====== async function loadGravityEngineSDK() { const sdkPaths = [ 'src/assets/_plugs/lib/gravityengine.mg.cocoscreator.min.js', 'assets/_plugs/lib/gravityengine.mg.cocoscreator.min.js', 'lib/gravityengine.mg.cocoscreator.min.js' // 额外后备路径 ]; let sdkLoaded = false; for (const path of sdkPaths) { try { console.log(`[SDK] Attempting to load from: ${path}`); await new Promise((resolve, reject) => { if (cc && cc.assetManager && cc.assetManager.loadScript) { cc.assetManager.loadScript(path, (err) => { if (err) { console.warn(`[SDK] Load failed: ${err.message}`); reject(err); } else { resolve(); } }); } else { console.warn('[SDK] cc.assetManager not available'); reject('Asset manager not available'); } }); console.log('[SDK] GravityEngine loaded successfully'); sdkLoaded = true; initGravityEngine(); break; } catch (err) { // 继续尝试下一个路径 } } if (!sdkLoaded) { console.error('[SDK] All load attempts failed'); handleSDKLoadFailure(); } } function initGravityEngine() { if (typeof GravityEngine === 'undefined') { console.error('[SDK] GravityEngine not defined after loading'); return; } try { GravityEngine.init({ appId: 'YOUR_APP_ID', // 替换为实际AppID enableLog: true }); console.log('[SDK] GravityEngine initialized'); } catch (e) { console.error('[SDK] Initialization failed:', e); } } function handleSDKLoadFailure() { console.warn('[SDK] Disabling analytics features'); // 创建空函数降级 window.trackEvent = window.trackEvent || function() {}; window.GravityEngine = window.GravityEngine || { init: () => console.warn('SDK not available'), trackEvent: () => {} }; } // ====== 场景加载器 ====== async function loadStartScene() { try { // 尝试加载主资源包 await new Promise((resolve, reject) => { if (cc && cc.assetManager && cc.assetManager.loadBundle) { cc.assetManager.loadBundle('main', (err) => { if (err) { console.error('[Scene] Bundle load failed:', err); reject(err); } else { console.log('[Scene] Main bundle loaded'); resolve(); } }); } else { console.warn('[Scene] Asset manager not available, skipping bundle load'); resolve(); // 继续执行 } }); // 加载启动场景 if (cc.director && cc.director.loadScene) { cc.director.loadScene('start'); } else { throw new Error('Director not available'); } } catch (error) { console.error('[Scene] Failed to load main bundle:', error); // 后备方案:直接加载场景 try { console.log('[Scene] Trying direct scene load'); if (cc.director && cc.director.loadScene) { cc.director.loadScene('start'); } else { throw new Error('Director not available'); } } catch (directError) { console.error('[Scene] Direct scene load failed:', directError); throw directError; // 传递给上层处理 } } } // ====== UI_Entry 组件 ====== var _decorator = cc._decorator; var _ccclass = _decorator.ccclass; var _property = _decorator.property; // 导入依赖模块 const r_Const_Common = require("Const_Common"); const r_GravityPlatform = require("GravityPlatform"); const r_YpNetMag = require("YpNetMag"); const r_EvenType = require("EvenType"); const r_PlayerDataManager = require("PlayerDataManager"); const r_ExcelLoader = require("ExcelLoader"); const r_GameDataManager = require("GameDataManager"); const r_GameGlobalVariable = require("GameGlobalVariable"); const r_UIConfig_Game = require("UIConfig_Game"); const r_UIConfig_Home = require("UIConfig_Home"); const r_BundleConfig = require("BundleConfig"); const r_GameConfig = require("GameConfig"); const r_AudioManager = require("AudioManager"); const r_EventManager = require("EventManager"); const r_HttpManager = require("HttpManager"); const r_LogManager = require("LogManager"); const r_ResLoader = require("ResLoader"); const r_UIManager = require("UIManager"); const r_UIView = require("UIView"); var def_UI_Entry = (function (_super) { __extends(def_UI_Entry, _super); function def_UI_Entry() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.progress_loading = null; _this.loginTimeoutHandler = null; return _this; } // 组件生命周期:加载 def_UI_Entry.prototype.onLoad = function () { var _this = this; EngineReady.safeAccess(function () { try { if (cc.director && cc.director.getCollisionManager) { cc.director.getCollisionManager().enabled = true; } console.log('[UI] Collision manager enabled'); _this._show(); } catch (e) { console.error('[UI] onLoad error:', e); _this.startLoadGame(); // 直接开始加载游戏 } }).catch(function (err) { console.error('[UI] Engine access error:', err); _this.startLoadGame(); }); }; // 组件生命周期:销毁 def_UI_Entry.prototype.onDestroy = function () { if (this.loginTimeoutHandler) { cc.Tween.stop(this.loginTimeoutHandler); this.loginTimeoutHandler = null; console.log('[UI] Login timeout handler cleared'); } }; // 显示UI并初始化平台SDK def_UI_Entry.prototype._show = function () { return __awaiter(this, void 0, void 0, function () { var _this = this; return __generator(this, function (_a) { this.progress_loading.progress = 0; console.log('[UI] Showing UI_Entry'); // 平台特定的SDK初始化 if (cc.sys && cc.sys.isBrowser) { this.initYPSDK().catch(function (err) { console.error('[UI] YPSDK init failed:', err); _this.startLoadGame(); }); } else { this.startLoadGame(); } // 设置登录超时保护(10秒) if (cc && cc.tween) { this.loginTimeoutHandler = cc.tween(this) .delay(10) .call(function () { console.warn('[UI] Login timeout after 10s, proceeding without SDK'); _this.startLoadGame(); }) .start(); } else { console.warn('[UI] cc.tween not available, using setTimeout'); setTimeout(() => { console.warn('[UI] Login timeout after 10s, proceeding without SDK'); this.startLoadGame(); }, 10000); } return [2]; }); }); }; // 初始化游品SDK def_UI_Entry.prototype.initYPSDK = function () { return __awaiter(this, void 0, void 0, function () { var config; var _this = this; return __generator(this, function (_a) { switch (_a.label) { case 0: if (typeof YPSDK === 'undefined') { console.warn('[YPSDK] YPSDK not available'); return [2]; } config = { gameChannelList: { h5: { platformType: "h5", describe: "默认 H5 渠道", version: "1.0.0" }, tt: { platformType: "tt", appId: "tt09297f94961f881b02", describe: "默认 TT 渠道", version: "1.0.0" }, wx: { platformType: "wx", appId: "wx6baaaa27ab5186ff", describe: "默认 WX 渠道", version: "1.0.0" } } }; return [4, YPSDK.init(39, "https://platform-shop-dev.hanyougame.com", config)]; case 1: _a.sent(); return [4, YPSDK.login()]; case 2: _a.sent(); // 设置登录回调 if (YPSDK.setLoginCallBack) { YPSDK.setLoginCallBack(function (success) { if (success) { // 取消超时处理 if (_this.loginTimeoutHandler) { if (cc && cc.Tween && cc.Tween.stop) { cc.Tween.stop(_this.loginTimeoutHandler); } _this.loginTimeoutHandler = null; } // 初始化重力引擎 if (r_GravityPlatform.default && typeof r_GravityPlatform.default.GA_Init === 'function') { r_GravityPlatform.default.GA_Init(YPSDK.Platform.loginData.bindingId); } _this.startLoadGame(); } }); } else { console.warn('[YPSDK] setLoginCallBack not available'); } return [2]; } }); }); }; // 开始加载游戏资源 def_UI_Entry.prototype.startLoadGame = function () { var tasks = [ this._loadGameConfig.bind(this), this._loadRemoteConfig.bind(this), this._loadExcelData.bind(this), this._loadUserData.bind(this), this._loadCommonBundle.bind(this), this._loadMainBundle.bind(this) ]; this.executeTasksWithProgress(tasks, this._loadGame.bind(this)); // 微信平台特殊处理 if (cc.sys && cc.sys.platform === cc.sys.WECHAT_GAME && typeof mg !== 'undefined') { try { mg.showShareMenu({ menus: ["shareAppMessage", "shareTimeline"] }); } catch (e) { console.warn('[WeChat] Share menu setup failed:', e); } } }; // 带进度监控的任务执行器 def_UI_Entry.prototype.executeTasksWithProgress = function (tasks, finalCallback) { var _this = this; var completed = 0; var failed = 0; var executeNext = function (index) { if (index >= tasks.length) { if (failed === 0) { finalCallback(); } else { console.warn("[Tasks] Completed with " + failed + " failures"); finalCallback(); // 即使有失败也继续 } return; } tasks[index]() .then(function () { completed++; _this._setProgress(completed / tasks.length); executeNext(index + 1); }) .catch(function (err) { console.error("[Task] #" + index + " failed:", err); failed++; _this._setProgress((completed + 0.5) / tasks.length); // 部分进度 executeNext(index + 1); }); }; executeNext(0); }; // 加载Excel数据 def_UI_Entry.prototype._loadExcelData = function () { return new Promise(function (resolve, reject) { if (r_ExcelLoader && r_ExcelLoader.ExcelLoader && r_ExcelLoader.ExcelLoader.loadAll) { r_ExcelLoader.ExcelLoader.loadAll() .then(function () { console.log('[Data] Excel data loaded'); resolve(); }) .catch(function (err) { console.error('[Data] Excel load failed:', err); reject(err); }); } else { console.warn('[Data] ExcelLoader not available'); resolve(); // 非关键任务继续 } }); }; // 加载游戏配置 def_UI_Entry.prototype._loadGameConfig = function () { return __awaiter(this, void 0, void 0, function () { var jsonAsset; return __generator(this, function (_a) { switch (_a.label) { case 0: if (!r_ResLoader || !r_ResLoader.default || !r_ResLoader.default.loadRes) { console.warn('[Config] ResLoader not available'); return [2, Promise.resolve()]; } return [4, r_ResLoader.default.loadRes("resources", "config/GameConfig", cc.JsonAsset)]; case 1: jsonAsset = _a.sent(); if (jsonAsset && r_GameConfig && r_GameConfig.default) { r_GameConfig.default.appConfig = jsonAsset.json; console.log('[Config] Game config loaded'); if (jsonAsset.decRef) { jsonAsset.decRef(); // 释放引用 } return [2, Promise.resolve()]; } else { console.error('[Config] Game config not found'); return [2, Promise.resolve()]; // 非关键错误继续 } } }); }); }; // 加载远程配置 def_UI_Entry.prototype._loadRemoteConfig = function () { return __awaiter(this, void 0, void 0, function () { var remoteUrl, remotePath, remoteConfig; return __generator(this, function (_a) { switch (_a.label) { case 0: if (!r_GameConfig || !r_GameConfig.default || !r_GameConfig.default.appConfig || !r_GameConfig.default.appConfig.RemoteUrl) { console.warn('[Config] RemoteUrl not configured'); return [2, Promise.resolve()]; } remoteUrl = r_GameConfig.default.appConfig.RemoteUrl; remotePath = cc.path.join(remoteUrl, "ADConfig.json"); return [4, r_ResLoader.default.loadRemote(remotePath, { ext: ".json" })]; case 1: remoteConfig = _a.sent(); if (remoteConfig && remoteConfig.json && r_GravityPlatform && r_GravityPlatform.default) { r_GravityPlatform.default.videoId = remoteConfig.json.ADUnitId[0]; if (r_GameConfig && r_GameConfig.default) { r_GameConfig.default.adConfig = remoteConfig.json; } console.log('[Config] Remote config loaded'); return [2, Promise.resolve()]; } else { console.error('[Config] Remote config load failed'); return [2, Promise.resolve()]; // 非关键错误,继续执行 } } }); }); }; // 加载公共资源包 def_UI_Entry.prototype._loadCommonBundle = function () { return new Promise(function (resolve, reject) { if (!r_ResLoader || !r_ResLoader.default || !r_ResLoader.default.loadBundle) { console.warn('[Bundle] ResLoader not available'); resolve(); return; } r_ResLoader.default.loadBundle(r_BundleConfig.BundleNames.Common) .then(function (bundle) { if (bundle) { console.log('[Bundle] Common bundle loaded'); resolve(); } else { console.warn('[Bundle] Common bundle not loaded'); resolve(); // 非关键错误继续 } }) .catch(err => { console.error('[Bundle] Common bundle load failed:', err); resolve(); // 非关键错误继续 }); }); }; // 加载主游戏包 def_UI_Entry.prototype._loadMainBundle = function () { return new Promise(function (resolve, reject) { if (!r_ResLoader || !r_ResLoader.default || !r_ResLoader.default.loadBundle) { console.warn('[Bundle] ResLoader not available'); resolve(); return; } r_ResLoader.default.loadBundle(r_BundleConfig.MainGameBundle) .then(function (bundle) { if (bundle) { console.log('[Bundle] Main game bundle loaded'); resolve(); } else { console.warn('[Bundle] Main game bundle not loaded'); resolve(); // 非关键错误继续 } }) .catch(err => { console.error('[Bundle] Main game bundle load failed:', err); resolve(); // 非关键错误继续 }); }); }; // 加载用户数据 def_UI_Entry.prototype._loadUserData = function () { return __awaiter(this, void 0, void 0, function () { return __generator(this, function (_a) { try { if (r_AudioManager && r_AudioManager.AudioMgr && r_AudioManager.AudioMgr.init) { r_AudioManager.AudioMgr.init(); } if (r_GameGlobalVariable && r_GameGlobalVariable.GameGlobalVariable && r_GameGlobalVariable.GameGlobalVariable.initPeiZhi) { r_GameGlobalVariable.GameGlobalVariable.initPeiZhi(); } if (YPSDK && YPSDK.Common && YPSDK.Common.curChannelData && r_YpNetMag && r_YpNetMag.YpNetMag && r_YpNetMag.YpNetMag.failSever) { var platformType = YPSDK.Common.curChannelData.platformType; if (platformType === YPSDK.GamePlatformType.WX || platformType === YPSDK.GamePlatformType.TT) { r_YpNetMag.YpNetMag.failSever(function () { if (r_YpNetMag.YpNetMag) { r_YpNetMag.YpNetMag.isFail = true; } console.warn('[Network] Server connection failed'); }); } } if (YPSDK && YPSDK.Platform && YPSDK.Platform.loginData && r_YpNetMag && r_YpNetMag.YpNetMag && r_YpNetMag.YpNetMag.initServer) { return [2, r_YpNetMag.YpNetMag.initServer(YPSDK.Platform.loginData)]; } else { console.warn('[User] No login data, skipping user init'); return [2, Promise.resolve()]; } } catch (err) { console.error('[User] Load user data failed:', err); return [2, Promise.resolve()]; // 非关键错误 } return [2]; }); }); }; // 初始化游戏主逻辑 def_UI_Entry.prototype._loadGame = function () { try { // 安全访问玩家数据管理器 if (!r_PlayerDataManager || !r_PlayerDataManager.PlayerDataMgr) { throw new Error('PlayerDataManager not available'); } // 获取引导状态 var guideIndex = r_PlayerDataManager.PlayerDataMgr.GetGuideIndexByTaskName(r_Const_Common.GuideName.战斗背包); if (guideIndex !== r_Const_Common.GameBagGuideIndex.引导完结) { // 新玩家流程 if (r_PlayerDataManager.PlayerDataMgr.GMSetGuideIndex) { r_PlayerDataManager.PlayerDataMgr.GMSetGuideIndex( r_Const_Common.GuideName.战斗背包, r_Const_Common.GameBagGuideIndex.引导初始1 ); } if (r_GameDataManager && r_GameDataManager.GameDataMgr && r_GameDataManager.GameDataMgr.ClearGameBagData) { r_GameDataManager.GameDataMgr.ClearGameBagData(); } if (r_GameGlobalVariable && r_GameGlobalVariable.GameGlobalVariable) { r_GameGlobalVariable.GameGlobalVariable.nowlevel = 1; } // 打开游戏场景 if (r_UIManager && r_UIManager.default && r_UIManager.default.open) { r_UIManager.default.open( r_BundleConfig.BundleNames.Game, r_UIConfig_Game.UIView_Game.UI_GameView ); } else { console.warn('[Game] UIManager not available, loading start scene'); cc.director.loadScene('start'); } } else { // 老玩家流程 if (r_EventManager && r_EventManager.EventMgr && r_EventManager.EventMgr.dispatchEvent) { r_EventManager.EventMgr.dispatchEvent(r_EvenType.EVENT_TYPE.Game_Load_View, true); } if (r_UIManager && r_UIManager.default && r_UIManager.default.open) { r_UIManager.default.open( r_BundleConfig.BundleNames.Home, r_UIConfig_Home.UIView_Home.UI_Hall ); } else { console.warn('[Game] UIManager not available, loading start scene'); cc.director.loadScene('start'); } } // 初始化白名单 this.onInitWhiteName(); } catch (error) { console.error('[Game] Load game failed:', error); // 尝试直接进入游戏场景 try { if (cc.director && cc.director.loadScene) { cc.director.loadScene('start'); } } catch (sceneError) { console.error('[Game] Fallback scene load failed:', sceneError); } } }; // 初始化白名单 def_UI_Entry.prototype.onInitWhiteName = function () { return __awaiter(this, void 0, void 0, function () { var url; return __generator(this, function (_a) { try { if (!YPSDK || !YPSDK.Platform || !YPSDK.Platform.loginData || !YPSDK.platformUrl) { console.warn('[WhiteList] YPSDK not initialized, skipping'); return [2]; } url = YPSDK.platformUrl + "/User/GetCfgData?userId=" + YPSDK.Platform.loginData.userUid + "&keyId=NoVideo"; console.log('[WhiteList] Checking:', url); if (r_HttpManager && r_HttpManager.HttpMgr && r_HttpManager.HttpMgr.requestData) { r_HttpManager.HttpMgr.requestData(function (response) { if (response && response.data && response.data.keyData === "true" && r_PlayerDataManager && r_PlayerDataManager.PlayerDataMgr) { r_PlayerDataManager.PlayerDataMgr.WHITE_NAME_NO_VIDEO = true; console.log('[WhiteList] User is in white list'); } }, url); } else { console.warn('[WhiteList] HttpManager not available'); } } catch (err) { console.error('[WhiteList] Init failed:', err); } return [2]; }); }); }; // 设置进度条 def_UI_Entry.prototype._setProgress = function (progress) { if (!this.progress_loading || !this.progress_loading.progress) { return; } progress = Math.max(0, Math.min(1, progress)); this.progress_loading.progress = progress; }; // 属性装饰器 __decorate([ _property(cc.ProgressBar) ], def_UI_Entry.prototype, "progress_loading", void 0); // 类装饰器 def_UI_Entry = __decorate([ _ccclass ], def_UI_Entry); return def_UI_Entry; }(r_UIView.default)); exports.default = def_UI_Entry; // ====== 启动游戏 ====== if (cc && cc.game && cc.game.run) { cc.game.run(gameMainEntry); } else { console.error('[Main] cc.game.run not available, using fallback start'); setTimeout(gameMainEntry, 1000); } UI_Entry.js是我的项目入口吗
07-16
下面是我按照你的思路执行指令后终端打印的结果(base) casbot@casbot:~/ros_catkin_ws$ # 备份原文件 sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak # 使用清华源(Ubuntu 22.04) sudo sed -i 's@//.*archive.ubuntu.com@//mirrors.tuna.tsinghua.edu.cn@g' /etc/apt/sources.list sudo apt update && sudo apt upgrade -y Ign:1 http://deb.repo.autolabor.com.cn jammy InRelease Ign:2 http://deb.repo.autolabor.com.cn jammy Release Ign:3 http://deb.repo.autolabor.com.cn jammy/main all Packages Ign:4 http://deb.repo.autolabor.com.cn jammy/main amd64 Packages Hit:5 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy InRelease Ign:6 http://deb.repo.autolabor.com.cn jammy/main Translation-en Ign:3 http://deb.repo.autolabor.com.cn jammy/main all Packages Hit:7 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates InRelease Ign:4 http://deb.repo.autolabor.com.cn jammy/main amd64 Packages Hit:8 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-backports InRelease Ign:6 http://deb.repo.autolabor.com.cn jammy/main Translation-en Hit:9 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-security InRelease Ign:3 http://deb.repo.autolabor.com.cn jammy/main all Packages Get:10 http://mirrors.tuna.tsinghua.edu.cn/ros2/ubuntu jammy InRelease [4682 B] Hit:11 http://packages.ros.org/ros/ubuntu focal InRelease Ign:4 http://deb.repo.autolabor.com.cn jammy/main amd64 Packages Ign:6 http://deb.repo.autolabor.com.cn jammy/main Translation-en Ign:3 http://deb.repo.autolabor.com.cn jammy/main all Packages Hit:4 http://deb.repo.autolabor.com.cn jammy/main amd64 Packages Ign:6 http://deb.repo.autolabor.com.cn jammy/main Translation-en Ign:3 http://deb.repo.autolabor.com.cn jammy/main all Packages Ign:6 http://deb.repo.autolabor.com.cn jammy/main Translation-en Ign:3 http://deb.repo.autolabor.com.cn jammy/main all Packages Ign:6 http://deb.repo.autolabor.com.cn jammy/main Translation-en Ign:3 http://deb.repo.autolabor.com.cn jammy/main all Packages Ign:6 http://deb.repo.autolabor.com.cn jammy/main Translation-en Fetched 4682 B in 3s (1850 B/s) Reading package lists... Done Building dependency tree... Done Reading state information... Done 80 packages can be upgraded. Run 'apt list --upgradable' to see them. Reading package lists... Done Building dependency tree... Done Reading state information... Done Calculating upgrade... Done Get more security updates through Ubuntu Pro with 'esm-apps' enabled: exo-utils libzvbi-common libzbar0 libheif1 libiperf0 libmujs1 libavdevice58 ffmpeg libopenexr25 libpostproc55 libmagickcore-6.q16-6-extra libavcodec58 libgstreamer-plugins-bad1.0-0 iperf3 libmagickwand-6.q16-6 libavutil56 libswscale5 libmagickcore-6.q16-6 libexo-2-0 libgsl27 gir1.2-gst-plugins-bad-1.0 libswresample3 imagemagick-6-common libavformat58 libzvbi0 gstreamer1.0-plugins-bad libgslcblas0 libde265-0 libexo-common libavfilter7 Learn more about Ubuntu Pro at https://ubuntu.com/pro The following NEW packages will be installed: libxcvt-dev The following packages have been kept back: dvb-tools ir-keytable libdvbv5-0 libdvbv5-dev libv4l-0 libv4l-dev libv4l2rds0 libv4lconvert0 qv4l2 v4l-utils xserver-common xserver-xorg-core xserver-xorg-legacy The following packages will be upgraded: apport ghostscript ghostscript-x gir1.2-javascriptcoregtk-4.0 gir1.2-soup-2.4 gir1.2-webkit2-4.0 git git-man libarchive13 libblockdev-crypto2 libblockdev-fs2 libblockdev-loop2 libblockdev-part-err2 libblockdev-part2 libblockdev-swap2 libblockdev-utils2 libblockdev2 libdjvulibre-text libdjvulibre21 libdvbv5-doc libgnutls30 libgs9 libgs9-common libjavascriptcoregtk-4.0-18 libnss-systemd libpam-modules libpam-modules-bin libpam-runtime libpam-systemd libpam0g libprotobuf23 libpython3.10 libpython3.10-dev libpython3.10-minimal libpython3.10-stdlib libre2-9 libsoup-gnome2.4-1 libsoup2.4-1 libsoup2.4-common libssh-4 libssh-gcrypt-4 libsystemd0 libudev1 libudisks2-0 libvpx7 libwebkit2gtk-4.0-37 libxslt1.1 linux-libc-dev python3-apport python3-pip python3-problem-report python3-protobuf python3-requests python3-urllib3 python3.10 python3.10-dev python3.10-minimal sudo systemd systemd-sysv ubuntu-advantage-tools ubuntu-pro-client ubuntu-pro-client-l10n udev udisks2 xserver-xorg-dev xwayland 67 upgraded, 1 newly installed, 0 to remove and 13 not upgraded. 62 standard LTS security updates Need to get 77.1 MB of archives. After this operation, 64.5 kB of additional disk space will be used. Get:1 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 libpam0g arm64 1.4.0-11ubuntu2.6 [59.7 kB] Get:2 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 libpam-modules-bin arm64 1.4.0-11ubuntu2.6 [38.6 kB] Get:3 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 libpam-modules arm64 1.4.0-11ubuntu2.6 [279 kB] Get:4 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 libnss-systemd arm64 249.11-0ubuntu3.16 [133 kB] Get:5 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 libsystemd0 arm64 249.11-0ubuntu3.16 [314 kB] Get:6 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 systemd-sysv arm64 249.11-0ubuntu3.16 [10.5 kB] Get:7 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 libpam-systemd arm64 249.11-0ubuntu3.16 [205 kB] Get:8 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 systemd arm64 249.11-0ubuntu3.16 [4423 kB] Get:9 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 udev arm64 249.11-0ubuntu3.16 [1541 kB] Get:10 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 libudev1 arm64 249.11-0ubuntu3.16 [74.5 kB] Get:11 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 libpam-runtime all 1.4.0-11ubuntu2.6 [40.2 kB] Get:12 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 libgnutls30 arm64 3.7.3-4ubuntu1.7 [922 kB] Get:13 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 python3.10-dev arm64 3.10.12-1~22.04.10 [508 kB] Get:14 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 libpython3.10-dev arm64 3.10.12-1~22.04.10 [4666 kB] Get:15 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 libpython3.10 arm64 3.10.12-1~22.04.10 [1885 kB] Get:16 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 python3.10 arm64 3.10.12-1~22.04.10 [508 kB] Get:17 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 libpython3.10-stdlib arm64 3.10.12-1~22.04.10 [1846 kB] Get:18 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 python3.10-minimal arm64 3.10.12-1~22.04.10 [2260 kB] Get:19 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 libpython3.10-minimal arm64 3.10.12-1~22.04.10 [812 kB] Get:20 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 sudo arm64 1.9.9-1ubuntu2.5 [807 kB] Get:21 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 ubuntu-pro-client-l10n arm64 36ubuntu0~22.04 [20.6 kB] Get:22 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 ubuntu-pro-client arm64 36ubuntu0~22.04 [236 kB] Get:23 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 ubuntu-advantage-tools all 36ubuntu0~22.04 [10.9 kB] Get:24 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 python3-problem-report all 2.20.11-0ubuntu82.9 [11.4 kB] Get:25 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 python3-apport all 2.20.11-0ubuntu82.9 [89.0 kB] Get:26 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 apport all 2.20.11-0ubuntu82.9 [135 kB] Get:27 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 ghostscript-x arm64 9.55.0~dfsg1-0ubuntu5.12 [48.0 kB] Get:28 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 ghostscript arm64 9.55.0~dfsg1-0ubuntu5.12 [49.7 kB] Get:29 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 libgs9 arm64 9.55.0~dfsg1-0ubuntu5.12 [4956 kB] Get:30 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 libgs9-common all 9.55.0~dfsg1-0ubuntu5.12 [753 kB] Get:31 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 gir1.2-webkit2-4.0 arm64 2.48.3-0ubuntu0.22.04.1 [105 kB] Get:32 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 gir1.2-javascriptcoregtk-4.0 arm64 2.48.3-0ubuntu0.22.04.1 [39.0 kB] Get:33 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 libwebkit2gtk-4.0-37 arm64 2.48.3-0ubuntu0.22.04.1 [26.2 MB] Get:34 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 libjavascriptcoregtk-4.0-18 arm64 2.48.3-0ubuntu0.22.04.1 [8729 kB] Get:35 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 gir1.2-soup-2.4 arm64 2.74.2-3ubuntu0.6 [31.8 kB] Get:36 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 libsoup-gnome2.4-1 arm64 2.74.2-3ubuntu0.6 [6194 B] Get:37 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 libsoup2.4-common all 2.74.2-3ubuntu0.6 [4778 B] Get:38 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 libsoup2.4-1 arm64 2.74.2-3ubuntu0.6 [281 kB] Get:39 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 libxslt1.1 arm64 1.1.34-4ubuntu0.22.04.4 [161 kB] Get:40 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 git-man all 1:2.34.1-1ubuntu1.15 [955 kB] Get:41 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 git arm64 1:2.34.1-1ubuntu1.15 [3224 kB] Get:42 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 libarchive13 arm64 3.6.0-1ubuntu1.5 [367 kB] Get:43 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 libblockdev-utils2 arm64 2.26-1ubuntu0.1 [15.5 kB] Get:44 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 libblockdev-crypto2 arm64 2.26-1ubuntu0.1 [17.3 kB] Get:45 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 libblockdev-part-err2 arm64 2.26-1ubuntu0.1 [5650 B] Get:46 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 libblockdev-fs2 arm64 2.26-1ubuntu0.1 [21.5 kB] Get:47 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 libblockdev-loop2 arm64 2.26-1ubuntu0.1 [6838 B] Get:48 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 libblockdev-part2 arm64 2.26-1ubuntu0.1 [15.0 kB] Get:49 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 libblockdev-swap2 arm64 2.26-1ubuntu0.1 [7452 B] Get:50 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 libblockdev2 arm64 2.26-1ubuntu0.1 [45.5 kB] Get:51 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 libdjvulibre-text all 3.5.28-2ubuntu0.22.04.1 [51.0 kB] Get:52 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 libdjvulibre21 arm64 3.5.28-2ubuntu0.22.04.1 [590 kB] Get:53 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy/main arm64 libdvbv5-doc all 1.22.1-2build1 [1479 kB] Get:54 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 libprotobuf23 arm64 3.12.4-1ubuntu7.22.04.4 [809 kB] Get:55 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy/main arm64 libre2-9 arm64 20220201+dfsg-1 [153 kB] Get:56 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 libssh-4 arm64 0.9.6-2ubuntu0.22.04.4 [185 kB] Get:57 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 libssh-gcrypt-4 arm64 0.9.6-2ubuntu0.22.04.4 [224 kB] Get:58 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 libudisks2-0 arm64 2.9.4-1ubuntu2.2 [168 kB] Get:59 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 libvpx7 arm64 1.11.0-2ubuntu2.4 [1042 kB] Get:60 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy/main arm64 libxcvt-dev arm64 0.1.1-3 [3236 B] Get:61 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 linux-libc-dev arm64 5.15.0-144.157 [1294 kB] Get:62 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/universe arm64 python3-pip all 22.0.2+dfsg-1ubuntu0.6 [1306 kB] Get:63 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 python3-protobuf arm64 3.12.4-1ubuntu7.22.04.4 [352 kB] Get:64 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 python3-urllib3 all 1.26.5-1~exp1ubuntu0.3 [98.6 kB] Get:65 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 python3-requests all 2.25.1+dfsg-2ubuntu0.3 [48.8 kB] Get:66 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 udisks2 arm64 2.9.4-1ubuntu2.2 [275 kB] Get:67 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 xserver-xorg-dev arm64 2:21.1.4-2ubuntu1.7~22.04.15 [205 kB] Get:68 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates/main arm64 xwayland arm64 2:22.1.1-1ubuntu0.19 [918 kB] Fetched 77.1 MB in 4min 46s (270 kB/s) Extracting templates from packages: 100% Preconfiguring packages ... (Reading database ... 126982 files and directories currently installed.) Preparing to unpack .../libpam0g_1.4.0-11ubuntu2.6_arm64.deb ... Unpacking libpam0g:arm64 (1.4.0-11ubuntu2.6) over (1.4.0-11ubuntu2.5) ... Setting up libpam0g:arm64 (1.4.0-11ubuntu2.6) ... (Reading database ... 126982 files and directories currently installed.) Preparing to unpack .../libpam-modules-bin_1.4.0-11ubuntu2.6_arm64.deb ... Unpacking libpam-modules-bin (1.4.0-11ubuntu2.6) over (1.4.0-11ubuntu2.5) ... Setting up libpam-modules-bin (1.4.0-11ubuntu2.6) ... (Reading database ... 126982 files and directories currently installed.) Preparing to unpack .../libpam-modules_1.4.0-11ubuntu2.6_arm64.deb ... Unpacking libpam-modules:arm64 (1.4.0-11ubuntu2.6) over (1.4.0-11ubuntu2.5) ... Setting up libpam-modules:arm64 (1.4.0-11ubuntu2.6) ... Installing new version of config file /etc/security/namespace.init ... (Reading database ... 126982 files and directories currently installed.) Preparing to unpack .../libnss-systemd_249.11-0ubuntu3.16_arm64.deb ... Unpacking libnss-systemd:arm64 (249.11-0ubuntu3.16) over (249.11-0ubuntu3.15) ... Preparing to unpack .../libsystemd0_249.11-0ubuntu3.16_arm64.deb ... Unpacking libsystemd0:arm64 (249.11-0ubuntu3.16) over (249.11-0ubuntu3.15) ... Setting up libsystemd0:arm64 (249.11-0ubuntu3.16) ... (Reading database ... 126982 files and directories currently installed.) Preparing to unpack .../systemd-sysv_249.11-0ubuntu3.16_arm64.deb ... Unpacking systemd-sysv (249.11-0ubuntu3.16) over (249.11-0ubuntu3.15) ... Preparing to unpack .../libpam-systemd_249.11-0ubuntu3.16_arm64.deb ... Unpacking libpam-systemd:arm64 (249.11-0ubuntu3.16) over (249.11-0ubuntu3.15) ... Preparing to unpack .../systemd_249.11-0ubuntu3.16_arm64.deb ... Unpacking systemd (249.11-0ubuntu3.16) over (249.11-0ubuntu3.15) ... Preparing to unpack .../udev_249.11-0ubuntu3.16_arm64.deb ... Unpacking udev (249.11-0ubuntu3.16) over (249.11-0ubuntu3.15) ... Preparing to unpack .../libudev1_249.11-0ubuntu3.16_arm64.deb ... Unpacking libudev1:arm64 (249.11-0ubuntu3.16) over (249.11-0ubuntu3.15) ... Setting up libudev1:arm64 (249.11-0ubuntu3.16) ... (Reading database ... 126982 files and directories currently installed.) Preparing to unpack .../libpam-runtime_1.4.0-11ubuntu2.6_all.deb ... Unpacking libpam-runtime (1.4.0-11ubuntu2.6) over (1.4.0-11ubuntu2.5) ... Setting up libpam-runtime (1.4.0-11ubuntu2.6) ... (Reading database ... 126982 files and directories currently installed.) Preparing to unpack .../libgnutls30_3.7.3-4ubuntu1.7_arm64.deb ... Unpacking libgnutls30:arm64 (3.7.3-4ubuntu1.7) over (3.7.3-4ubuntu1.6) ... Setting up libgnutls30:arm64 (3.7.3-4ubuntu1.7) ... (Reading database ... 126982 files and directories currently installed.) Preparing to unpack .../00-python3.10-dev_3.10.12-1~22.04.10_arm64.deb ... Unpacking python3.10-dev (3.10.12-1~22.04.10) over (3.10.12-1~22.04.9) ... Preparing to unpack .../01-libpython3.10-dev_3.10.12-1~22.04.10_arm64.deb ... Unpacking libpython3.10-dev:arm64 (3.10.12-1~22.04.10) over (3.10.12-1~22.04.9) ... Preparing to unpack .../02-libpython3.10_3.10.12-1~22.04.10_arm64.deb ... Unpacking libpython3.10:arm64 (3.10.12-1~22.04.10) over (3.10.12-1~22.04.9) ... Preparing to unpack .../03-python3.10_3.10.12-1~22.04.10_arm64.deb ... Unpacking python3.10 (3.10.12-1~22.04.10) over (3.10.12-1~22.04.9) ... Preparing to unpack .../04-libpython3.10-stdlib_3.10.12-1~22.04.10_arm64.deb ... Unpacking libpython3.10-stdlib:arm64 (3.10.12-1~22.04.10) over (3.10.12-1~22.04.9) ... Preparing to unpack .../05-python3.10-minimal_3.10.12-1~22.04.10_arm64.deb ... Unpacking python3.10-minimal (3.10.12-1~22.04.10) over (3.10.12-1~22.04.9) ... Preparing to unpack .../06-libpython3.10-minimal_3.10.12-1~22.04.10_arm64.deb ... Unpacking libpython3.10-minimal:arm64 (3.10.12-1~22.04.10) over (3.10.12-1~22.04.9) ... Preparing to unpack .../07-sudo_1.9.9-1ubuntu2.5_arm64.deb ... Unpacking sudo (1.9.9-1ubuntu2.5) over (1.9.9-1ubuntu2.4) ... Preparing to unpack .../08-ubuntu-pro-client-l10n_36ubuntu0~22.04_arm64.deb ... Unpacking ubuntu-pro-client-l10n (36ubuntu0~22.04) over (35.1ubuntu0~22.04) ... Preparing to unpack .../09-ubuntu-pro-client_36ubuntu0~22.04_arm64.deb ... Unpacking ubuntu-pro-client (36ubuntu0~22.04) over (35.1ubuntu0~22.04) ... Preparing to unpack .../10-ubuntu-advantage-tools_36ubuntu0~22.04_all.deb ... Unpacking ubuntu-advantage-tools (36ubuntu0~22.04) over (35.1ubuntu0~22.04) ... Preparing to unpack .../11-python3-problem-report_2.20.11-0ubuntu82.9_all.deb ... Unpacking python3-problem-report (2.20.11-0ubuntu82.9) over (2.20.11-0ubuntu82.7) ... Preparing to unpack .../12-python3-apport_2.20.11-0ubuntu82.9_all.deb ... Unpacking python3-apport (2.20.11-0ubuntu82.9) over (2.20.11-0ubuntu82.7) ... Preparing to unpack .../13-apport_2.20.11-0ubuntu82.9_all.deb ... Unpacking apport (2.20.11-0ubuntu82.9) over (2.20.11-0ubuntu82.7) ... Preparing to unpack .../14-ghostscript-x_9.55.0~dfsg1-0ubuntu5.12_arm64.deb ... Unpacking ghostscript-x (9.55.0~dfsg1-0ubuntu5.12) over (9.55.0~dfsg1-0ubuntu5.11) ... Preparing to unpack .../15-ghostscript_9.55.0~dfsg1-0ubuntu5.12_arm64.deb ... Unpacking ghostscript (9.55.0~dfsg1-0ubuntu5.12) over (9.55.0~dfsg1-0ubuntu5.11) ... Preparing to unpack .../16-libgs9_9.55.0~dfsg1-0ubuntu5.12_arm64.deb ... Unpacking libgs9:arm64 (9.55.0~dfsg1-0ubuntu5.12) over (9.55.0~dfsg1-0ubuntu5.11) ... Preparing to unpack .../17-libgs9-common_9.55.0~dfsg1-0ubuntu5.12_all.deb ... Unpacking libgs9-common (9.55.0~dfsg1-0ubuntu5.12) over (9.55.0~dfsg1-0ubuntu5.11) ... Preparing to unpack .../18-gir1.2-webkit2-4.0_2.48.3-0ubuntu0.22.04.1_arm64.deb ... Unpacking gir1.2-webkit2-4.0:arm64 (2.48.3-0ubuntu0.22.04.1) over (2.48.1-0ubuntu0.22.04.1) ... Preparing to unpack .../19-gir1.2-javascriptcoregtk-4.0_2.48.3-0ubuntu0.22.04.1_arm64.deb ... Unpacking gir1.2-javascriptcoregtk-4.0:arm64 (2.48.3-0ubuntu0.22.04.1) over (2.48.1-0ubuntu0.22.04.1) ... Preparing to unpack .../20-libwebkit2gtk-4.0-37_2.48.3-0ubuntu0.22.04.1_arm64.deb ... Unpacking libwebkit2gtk-4.0-37:arm64 (2.48.3-0ubuntu0.22.04.1) over (2.48.1-0ubuntu0.22.04.1) ... Preparing to unpack .../21-libjavascriptcoregtk-4.0-18_2.48.3-0ubuntu0.22.04.1_arm64.deb ... Unpacking libjavascriptcoregtk-4.0-18:arm64 (2.48.3-0ubuntu0.22.04.1) over (2.48.1-0ubuntu0.22.04.1) ... Preparing to unpack .../22-gir1.2-soup-2.4_2.74.2-3ubuntu0.6_arm64.deb ... Unpacking gir1.2-soup-2.4:arm64 (2.74.2-3ubuntu0.6) over (2.74.2-3ubuntu0.5) ... Preparing to unpack .../23-libsoup-gnome2.4-1_2.74.2-3ubuntu0.6_arm64.deb ... Unpacking libsoup-gnome2.4-1:arm64 (2.74.2-3ubuntu0.6) over (2.74.2-3ubuntu0.5) ... Preparing to unpack .../24-libsoup2.4-common_2.74.2-3ubuntu0.6_all.deb ... Unpacking libsoup2.4-common (2.74.2-3ubuntu0.6) over (2.74.2-3ubuntu0.5) ... Preparing to unpack .../25-libsoup2.4-1_2.74.2-3ubuntu0.6_arm64.deb ... Unpacking libsoup2.4-1:arm64 (2.74.2-3ubuntu0.6) over (2.74.2-3ubuntu0.5) ... Preparing to unpack .../26-libxslt1.1_1.1.34-4ubuntu0.22.04.4_arm64.deb ... Unpacking libxslt1.1:arm64 (1.1.34-4ubuntu0.22.04.4) over (1.1.34-4ubuntu0.22.04.3) ... Preparing to unpack .../27-git-man_1%3a2.34.1-1ubuntu1.15_all.deb ... Unpacking git-man (1:2.34.1-1ubuntu1.15) over (1:2.34.1-1ubuntu1.12) ... Preparing to unpack .../28-git_1%3a2.34.1-1ubuntu1.15_arm64.deb ... Unpacking git (1:2.34.1-1ubuntu1.15) over (1:2.34.1-1ubuntu1.12) ... Preparing to unpack .../29-libarchive13_3.6.0-1ubuntu1.5_arm64.deb ... Unpacking libarchive13:arm64 (3.6.0-1ubuntu1.5) over (3.6.0-1ubuntu1.4) ... Preparing to unpack .../30-libblockdev-utils2_2.26-1ubuntu0.1_arm64.deb ... Unpacking libblockdev-utils2:arm64 (2.26-1ubuntu0.1) over (2.26-1) ... Preparing to unpack .../31-libblockdev-crypto2_2.26-1ubuntu0.1_arm64.deb ... Unpacking libblockdev-crypto2:arm64 (2.26-1ubuntu0.1) over (2.26-1) ... Preparing to unpack .../32-libblockdev-part-err2_2.26-1ubuntu0.1_arm64.deb ... Unpacking libblockdev-part-err2:arm64 (2.26-1ubuntu0.1) over (2.26-1) ... Preparing to unpack .../33-libblockdev-fs2_2.26-1ubuntu0.1_arm64.deb ... Unpacking libblockdev-fs2:arm64 (2.26-1ubuntu0.1) over (2.26-1) ... Preparing to unpack .../34-libblockdev-loop2_2.26-1ubuntu0.1_arm64.deb ... Unpacking libblockdev-loop2:arm64 (2.26-1ubuntu0.1) over (2.26-1) ... Preparing to unpack .../35-libblockdev-part2_2.26-1ubuntu0.1_arm64.deb ... Unpacking libblockdev-part2:arm64 (2.26-1ubuntu0.1) over (2.26-1) ... Preparing to unpack .../36-libblockdev-swap2_2.26-1ubuntu0.1_arm64.deb ... Unpacking libblockdev-swap2:arm64 (2.26-1ubuntu0.1) over (2.26-1) ... Preparing to unpack .../37-libblockdev2_2.26-1ubuntu0.1_arm64.deb ... Unpacking libblockdev2:arm64 (2.26-1ubuntu0.1) over (2.26-1) ... Preparing to unpack .../38-libdjvulibre-text_3.5.28-2ubuntu0.22.04.1_all.deb ... Unpacking libdjvulibre-text (3.5.28-2ubuntu0.22.04.1) over (3.5.28-2build2) ... Preparing to unpack .../39-libdjvulibre21_3.5.28-2ubuntu0.22.04.1_arm64.deb ... Unpacking libdjvulibre21:arm64 (3.5.28-2ubuntu0.22.04.1) over (3.5.28-2build2) ... Preparing to unpack .../40-libdvbv5-doc_1.22.1-2build1_all.deb ... Unpacking libdvbv5-doc (1.22.1-2build1) over (1.18.0-2build1) ... Preparing to unpack .../41-libprotobuf23_3.12.4-1ubuntu7.22.04.4_arm64.deb ... Unpacking libprotobuf23:arm64 (3.12.4-1ubuntu7.22.04.4) over (3.12.4-1ubuntu7.22.04.2) ... Preparing to unpack .../42-libre2-9_20220201+dfsg-1_arm64.deb ... Unpacking libre2-9:arm64 (20220201+dfsg-1) over (20210201+dfsg-1) ... Preparing to unpack .../43-libssh-4_0.9.6-2ubuntu0.22.04.4_arm64.deb ... Unpacking libssh-4:arm64 (0.9.6-2ubuntu0.22.04.4) over (0.9.6-2ubuntu0.22.04.3) ... Preparing to unpack .../44-libssh-gcrypt-4_0.9.6-2ubuntu0.22.04.4_arm64.deb ... Unpacking libssh-gcrypt-4:arm64 (0.9.6-2ubuntu0.22.04.4) over (0.9.6-2ubuntu0.22.04.3) ... Preparing to unpack .../45-libudisks2-0_2.9.4-1ubuntu2.2_arm64.deb ... Unpacking libudisks2-0:arm64 (2.9.4-1ubuntu2.2) over (2.9.4-1ubuntu2) ... Preparing to unpack .../46-libvpx7_1.11.0-2ubuntu2.4_arm64.deb ... Unpacking libvpx7:arm64 (1.11.0-2ubuntu2.4) over (1.11.0-2ubuntu2.3) ... Selecting previously unselected package libxcvt-dev:arm64. Preparing to unpack .../47-libxcvt-dev_0.1.1-3_arm64.deb ... Unpacking libxcvt-dev:arm64 (0.1.1-3) ... Preparing to unpack .../48-linux-libc-dev_5.15.0-144.157_arm64.deb ... Unpacking linux-libc-dev:arm64 (5.15.0-144.157) over (5.15.0-142.152) ... Preparing to unpack .../49-python3-pip_22.0.2+dfsg-1ubuntu0.6_all.deb ... Unpacking python3-pip (22.0.2+dfsg-1ubuntu0.6) over (22.0.2+dfsg-1ubuntu0.5) ... Preparing to unpack .../50-python3-protobuf_3.12.4-1ubuntu7.22.04.4_arm64.deb ... Unpacking python3-protobuf (3.12.4-1ubuntu7.22.04.4) over (3.12.4-1ubuntu7.22.04.2) ... Preparing to unpack .../51-python3-urllib3_1.26.5-1~exp1ubuntu0.3_all.deb ... Unpacking python3-urllib3 (1.26.5-1~exp1ubuntu0.3) over (1.26.5-1~exp1ubuntu0.2) ... Preparing to unpack .../52-python3-requests_2.25.1+dfsg-2ubuntu0.3_all.deb ... Unpacking python3-requests (2.25.1+dfsg-2ubuntu0.3) over (2.25.1+dfsg-2ubuntu0.1) ... Preparing to unpack .../53-udisks2_2.9.4-1ubuntu2.2_arm64.deb ... Unpacking udisks2 (2.9.4-1ubuntu2.2) over (2.9.4-1ubuntu2) ... Preparing to unpack .../54-xserver-xorg-dev_2%3a21.1.4-2ubuntu1.7~22.04.15_arm64.deb ... Unpacking xserver-xorg-dev (2:21.1.4-2ubuntu1.7~22.04.15) over (2:1.20.13-1ubuntu1~20.04.2) ... Preparing to unpack .../55-xwayland_2%3a22.1.1-1ubuntu0.19_arm64.deb ... Unpacking xwayland (2:22.1.1-1ubuntu0.19) over (2:22.1.1-1ubuntu0.18) ... Setting up libssh-gcrypt-4:arm64 (0.9.6-2ubuntu0.22.04.4) ... Setting up libgs9-common (9.55.0~dfsg1-0ubuntu5.12) ... Setting up libre2-9:arm64 (20220201+dfsg-1) ... Setting up libxcvt-dev:arm64 (0.1.1-3) ... Setting up libgs9:arm64 (9.55.0~dfsg1-0ubuntu5.12) ... Setting up xserver-xorg-dev (2:21.1.4-2ubuntu1.7~22.04.15) ... Setting up libarchive13:arm64 (3.6.0-1ubuntu1.5) ... Setting up python3-problem-report (2.20.11-0ubuntu82.9) ... Setting up libjavascriptcoregtk-4.0-18:arm64 (2.48.3-0ubuntu0.22.04.1) ... Setting up linux-libc-dev:arm64 (5.15.0-144.157) ... Setting up libprotobuf23:arm64 (3.12.4-1ubuntu7.22.04.4) ... Setting up systemd (249.11-0ubuntu3.16) ... Setting up libdvbv5-doc (1.22.1-2build1) ... Setting up gir1.2-javascriptcoregtk-4.0:arm64 (2.48.3-0ubuntu0.22.04.1) ... Setting up ghostscript (9.55.0~dfsg1-0ubuntu5.12) ... Setting up python3-apport (2.20.11-0ubuntu82.9) ... Setting up libblockdev-utils2:arm64 (2.26-1ubuntu0.1) ... Setting up udev (249.11-0ubuntu3.16) ... Setting up libpython3.10-minimal:arm64 (3.10.12-1~22.04.10) ... Setting up sudo (1.9.9-1ubuntu2.5) ... Setting up python3-pip (22.0.2+dfsg-1ubuntu0.6) ... Setting up libssh-4:arm64 (0.9.6-2ubuntu0.22.04.4) ... Setting up python3-urllib3 (1.26.5-1~exp1ubuntu0.3) ... Setting up libsoup2.4-common (2.74.2-3ubuntu0.6) ... Setting up libxslt1.1:arm64 (1.1.34-4ubuntu0.22.04.4) ... Setting up libblockdev-part-err2:arm64 (2.26-1ubuntu0.1) ... Setting up git-man (1:2.34.1-1ubuntu1.15) ... Setting up libvpx7:arm64 (1.11.0-2ubuntu2.4) ... Setting up libdjvulibre-text (3.5.28-2ubuntu0.22.04.1) ... Setting up xwayland (2:22.1.1-1ubuntu0.19) ... Setting up python3-protobuf (3.12.4-1ubuntu7.22.04.4) ... Setting up ubuntu-pro-client (36ubuntu0~22.04) ... Installing new version of config file /etc/apparmor.d/ubuntu_pro_esm_cache ... Setting up libudisks2-0:arm64 (2.9.4-1ubuntu2.2) ... Setting up ubuntu-pro-client-l10n (36ubuntu0~22.04) ... Setting up systemd-sysv (249.11-0ubuntu3.16) ... Setting up libblockdev-crypto2:arm64 (2.26-1ubuntu0.1) ... Setting up libsoup2.4-1:arm64 (2.74.2-3ubuntu0.6) ... Setting up libblockdev-swap2:arm64 (2.26-1ubuntu0.1) ... Setting up libdjvulibre21:arm64 (3.5.28-2ubuntu0.22.04.1) ... Setting up libnss-systemd:arm64 (249.11-0ubuntu3.16) ... Setting up libblockdev-loop2:arm64 (2.26-1ubuntu0.1) ... Setting up ghostscript-x (9.55.0~dfsg1-0ubuntu5.12) ... Setting up libblockdev2:arm64 (2.26-1ubuntu0.1) ... Setting up libblockdev-part2:arm64 (2.26-1ubuntu0.1) ... Setting up python3.10-minimal (3.10.12-1~22.04.10) ... Setting up apport (2.20.11-0ubuntu82.9) ... apport-autoreport.service is a disabled or a static unit, not starting it. Setting up libpython3.10-stdlib:arm64 (3.10.12-1~22.04.10) ... Setting up python3-requests (2.25.1+dfsg-2ubuntu0.3) ... Setting up libblockdev-fs2:arm64 (2.26-1ubuntu0.1) ... Setting up git (1:2.34.1-1ubuntu1.15) ... Setting up libwebkit2gtk-4.0-37:arm64 (2.48.3-0ubuntu0.22.04.1) ... Setting up libpam-systemd:arm64 (249.11-0ubuntu3.16) ... Setting up ubuntu-advantage-tools (36ubuntu0~22.04) ... Setting up libsoup-gnome2.4-1:arm64 (2.74.2-3ubuntu0.6) ... Setting up udisks2 (2.9.4-1ubuntu2.2) ... Setting up libpython3.10:arm64 (3.10.12-1~22.04.10) ... Setting up python3.10 (3.10.12-1~22.04.10) ... Setting up gir1.2-soup-2.4:arm64 (2.74.2-3ubuntu0.6) ... Setting up libpython3.10-dev:arm64 (3.10.12-1~22.04.10) ... Setting up python3.10-dev (3.10.12-1~22.04.10) ... Setting up gir1.2-webkit2-4.0:arm64 (2.48.3-0ubuntu0.22.04.1) ... Processing triggers for hicolor-icon-theme (0.17-2) ... Processing triggers for doc-base (0.11.1) ... Processing 1 added doc-base file... Error in `/usr/share/doc-base/libdvbv5-doc.libdvbv5-reference', line 9: all `Format' sections are invalid. Note: `install-docs --verbose --check file_name' may give more details about the above error. Processing triggers for gnome-menus (3.36.0-1ubuntu3) ... Processing triggers for libc-bin (2.35-0ubuntu3.10) ... Processing triggers for man-db (2.10.2-1) ... Processing triggers for dbus (1.12.20-2ubuntu4.1) ... Processing triggers for mailcap (3.70+nmu1ubuntu1) ... Processing triggers for bamfdaemon (0.5.6+22.04.20220217-0ubuntu1) ... Rebuilding /usr/share/applications/bamf-2.index... Processing triggers for desktop-file-utils (0.26-1ubuntu3) ... (base) casbot@casbot:~/ros_catkin_ws$ sudo sh -c 'echo "deb https://mirrors.ustc.edu.cn/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-noetic.list' sudo apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654 Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)). Executing: /tmp/apt-key-gpghome.6cqeROMOQT/gpg.1.sh --keyserver hkp://keyserver.ubuntu.com:80 --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654 gpg: key F42ED6FBAB17C654: "Open Robotics <info@osrfoundation.org>" not changed gpg: Total number processed: 1 gpg: unchanged: 1 (base) casbot@casbot:~/ros_catkin_ws$ sudo apt update # 安装桌面完整版(约 1.5GB,网络不稳定时分段安装) sudo apt install ros-noetic-desktop-full -y --allow-unauthenticated Ign:1 http://deb.repo.autolabor.com.cn jammy InRelease Ign:2 http://deb.repo.autolabor.com.cn jammy Release Ign:3 http://deb.repo.autolabor.com.cn jammy/main all Packages Ign:4 http://deb.repo.autolabor.com.cn jammy/main amd64 Packages Ign:5 http://deb.repo.autolabor.com.cn jammy/main Translation-en Ign:3 http://deb.repo.autolabor.com.cn jammy/main all Packages Ign:4 http://deb.repo.autolabor.com.cn jammy/main amd64 Packages Ign:5 http://deb.repo.autolabor.com.cn jammy/main Translation-en Ign:3 http://deb.repo.autolabor.com.cn jammy/main all Packages Ign:4 http://deb.repo.autolabor.com.cn jammy/main amd64 Packages Ign:5 http://deb.repo.autolabor.com.cn jammy/main Translation-en Ign:3 http://deb.repo.autolabor.com.cn jammy/main all Packages Ign:6 https://mirrors.ustc.edu.cn/ros/ubuntu jammy InRelease Hit:4 http://deb.repo.autolabor.com.cn jammy/main amd64 Packages Err:7 https://mirrors.ustc.edu.cn/ros/ubuntu jammy Release 404 Not Found [IP: 202.141.176.110 443] Ign:5 http://deb.repo.autolabor.com.cn jammy/main Translation-en Ign:3 http://deb.repo.autolabor.com.cn jammy/main all Packages Ign:5 http://deb.repo.autolabor.com.cn jammy/main Translation-en Ign:3 http://deb.repo.autolabor.com.cn jammy/main all Packages Ign:5 http://deb.repo.autolabor.com.cn jammy/main Translation-en Ign:3 http://deb.repo.autolabor.com.cn jammy/main all Packages Ign:5 http://deb.repo.autolabor.com.cn jammy/main Translation-en Hit:8 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy InRelease Hit:9 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates InRelease Hit:10 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-backports InRelease Hit:11 http://packages.ros.org/ros/ubuntu focal InRelease Hit:12 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports jammy-security InRelease Get:13 http://mirrors.tuna.tsinghua.edu.cn/ros2/ubuntu jammy InRelease [4682 B] Reading package lists... Done E: The repository 'https://mirrors.ustc.edu.cn/ros/ubuntu jammy Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. Reading package lists... Done Building dependency tree... Done Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: gazebo11 : Depends: libboost-filesystem1.71.0 but it is not installable Depends: libboost-iostreams1.71.0 but it is not installable Depends: libboost-program-options1.71.0 but it is not installable Depends: libboost-regex1.71.0-icu66 but it is not installable Depends: libboost-thread1.71.0 but it is not installable Depends: libgazebo11 (= 11.15.1-1~focal) but it is not going to be installed Depends: libignition-msgs5 (>= 5.11.0) but it is not going to be installed Depends: libignition-transport8 (>= 8.5.0) but it is not going to be installed Depends: libprotobuf17 but it is not installable Depends: gazebo11-common (>= 11.2.0) but it is not going to be installed Recommends: gazebo11-plugin-base but it is not going to be installed libgazebo11-dev : Depends: libignition-transport8-dev but it is not going to be installed Depends: libignition-msgs5-dev but it is not going to be installed Depends: libignition-fuel-tools4-dev but it is not going to be installed Depends: libignition-common3-dev but it is not going to be installed Depends: libignition-common3-graphics-dev but it is not going to be installed Depends: libdart6-collision-bullet-dev (< 6.10.0) but it is not installable or libdart-collision-bullet-dev (< 6.10.0) but it is not going to be installed Depends: libdart6-collision-ode-dev (< 6.10.0) but it is not installable or libdart-collision-ode-dev (< 6.10.0) but it is not going to be installed Depends: libdart6-utils-urdf-dev (< 6.10.0) but it is not installable or libdart-utils-urdf-dev (< 6.10.0) but it is not going to be installed Depends: libdart6-external-odelcpsolver-dev (< 6.10.0) but it is not installable or libdart-external-odelcpsolver-dev (< 6.10.0) but it is not going to be installed Depends: libdart6-external-ikfast-dev (< 6.10.0) but it is not installable or libdart-external-ikfast-dev (< 6.10.0) but it is not going to be installed Depends: libgazebo11 (= 11.15.1-1~focal) but it is not going to be installed Depends: gazebo11-common (>= 11.2.0) but it is not going to be installed Depends: gazebo11-plugin-base (= 11.15.1-1~focal) but it is not going to be installed libicu-dev : Depends: libicu70 (= 70.1-2) but 70.1-2ubuntu1 is to be installed libjsoncpp-dev : Depends: libjsoncpp25 (= 1.9.5-3) but 1.9.5-3ubuntu0.1 is to be installed ros-noetic-actionlib : Depends: libboost-thread1.71.0 but it is not installable ros-noetic-actionlib-tutorials : Depends: libboost-thread1.71.0 but it is not installable ros-noetic-bondcpp : Depends: libboost-thread1.71.0 but it is not installable ros-noetic-camera-calibration-parsers : Depends: libboost-filesystem1.71.0 but it is not installable Depends: libboost-python1.71.0 but it is not installable Depends: libboost-python1.71.0-py38 but it is not installable Depends: libpython3.8 (>= 3.8.2) but it is not installable Depends: libyaml-cpp0.6 (>= 0.6.2) but it is not installable ros-noetic-class-loader : Depends: libboost-filesystem1.71.0 but it is not installable Depends: libconsole-bridge0.4 but it is not installable Depends: libpocofoundation62 (>= 1.9.2) but it is not installable ros-noetic-compressed-depth-image-transport : Depends: libconsole-bridge0.4 but it is not installable Depends: libopencv-core4.2 (>= 4.2.0+dfsg) but it is not installable Depends: libopencv-imgcodecs4.2 (>= 4.2.0+dfsg) but it is not installable ros-noetic-compressed-image-transport : Depends: libconsole-bridge0.4 but it is not installable Depends: libopencv-core4.2 (>= 4.2.0+dfsg) but it is not installable Depends: libopencv-imgcodecs4.2 (>= 4.2.0+dfsg) but it is not installable Depends: libopencv-imgproc4.2 (>= 4.2.0+dfsg) but it is not installable ros-noetic-controller-manager : Depends: libboost-filesystem1.71.0 but it is not installable Depends: libconsole-bridge0.4 but it is not installable Depends: libtinyxml2-6a (>= 5.0.0) but it is not installable ros-noetic-cpp-common : Depends: libconsole-bridge0.4 but it is not installable ros-noetic-cv-bridge : Depends: libboost-python1.71.0 but it is not installable Depends: libboost-python1.71.0-py38 but it is not installable Depends: libboost-regex1.71.0-icu66 but it is not installable Depends: libopencv-core4.2 (>= 4.2.0+dfsg) but it is not installable Depends: libopencv-imgcodecs4.2 (>= 4.2.0+dfsg) but it is not installable Depends: libopencv-imgproc4.2 (>= 4.2.0+dfsg) but it is not installable Depends: libpython3.8 (>= 3.8.2) but it is not installable ros-noetic-depth-image-proc : Depends: libconsole-bridge0.4 but it is not installable Depends: libopencv-calib3d4.2 (>= 4.2.0+dfsg) but it is not installable Depends: libopencv-core4.2 (>= 4.2.0+dfsg) but it is not installable Depends: libopencv-imgproc4.2 (>= 4.2.0+dfsg) but it is not installable ros-noetic-diagnostic-aggregator : Depends: libboost-filesystem1.71.0 but it is not installable Depends: libboost-regex1.71.0-icu66 but it is not installable Depends: libconsole-bridge0.4 but it is not installable Depends: libtinyxml2-6a (>= 5.0.0) but it is not installable ros-noetic-diagnostic-common-diagnostics : Depends: hddtemp but it is not installable ros-noetic-diff-drive-controller : Depends: libconsole-bridge0.4 but it is not installable Depends: liburdfdom-model but it is not installable ros-noetic-eigen-conversions : Depends: liborocos-kdl1.4 but it is not installable ros-noetic-filters : Depends: libconsole-bridge0.4 but it is not installable ros-noetic-gazebo-plugins : Depends: libboost-thread1.71.0 but it is not installable Depends: libgazebo11 (>= 11.15.1) but it is not going to be installed Depends: libopencv-core4.2 (>= 4.2.0+dfsg) but it is not installable Depends: libopencv-imgproc4.2 (>= 4.2.0+dfsg) but it is not installable Depends: libprotobuf17 but it is not installable ros-noetic-gazebo-ros : Depends: libboost-thread1.71.0 but it is not installable Depends: libgazebo11 (>= 11.15.1) but it is not going to be installed Depends: libprotobuf17 but it is not installable ros-noetic-gazebo-ros-control : Depends: libboost-filesystem1.71.0 but it is not installable Depends: libboost-thread1.71.0 but it is not installable Depends: libconsole-bridge0.4 but it is not installable Depends: libgazebo11 (>= 11.15.1) but it is not going to be installed Depends: libtinyxml2-6a (>= 5.0.0) but it is not installable Depends: ros-noetic-transmission-interface but it is not going to be installed ros-noetic-image-geometry : Depends: libopencv-calib3d4.2 (>= 4.2.0+dfsg) but it is not installable Depends: libopencv-core4.2 (>= 4.2.0+dfsg) but it is not installable Depends: libopencv-imgproc4.2 (>= 4.2.0+dfsg) but it is not installable ros-noetic-image-proc : Depends: libconsole-bridge0.4 but it is not installable Depends: libopencv-core4.2 (>= 4.2.0+dfsg) but it is not installable Depends: libopencv-imgproc4.2 (>= 4.2.0+dfsg) but it is not installable ros-noetic-image-publisher : Depends: libconsole-bridge0.4 but it is not installable Depends: libopencv-core4.2 (>= 4.2.0+dfsg) but it is not installable Depends: libopencv-imgcodecs4.2 (>= 4.2.0+dfsg) but it is not installable Depends: libopencv-videoio4.2 (>= 4.2.0+dfsg) but it is not installable ros-noetic-image-rotate : Depends: libconsole-bridge0.4 but it is not installable Depends: libopencv-core4.2 (>= 4.2.0+dfsg) but it is not installable Depends: libopencv-imgproc4.2 (>= 4.2.0+dfsg) but it is not installable ros-noetic-image-transport : Depends: libboost-filesystem1.71.0 but it is not installable Depends: libconsole-bridge0.4 but it is not installable Depends: libtinyxml2-6a (>= 5.0.0) but it is not installable ros-noetic-image-view : Depends: libboost-thread1.71.0 but it is not installable Depends: libconsole-bridge0.4 but it is not installable Depends: libopencv-core4.2 (>= 4.2.0+dfsg) but it is not installable Depends: libopencv-highgui4.2 (>= 4.2.0+dfsg) but it is not installable Depends: libopencv-imgcodecs4.2 (>= 4.2.0+dfsg) but it is not installable Depends: libopencv-videoio4.2 (>= 4.2.0+dfsg) but it is not installable ros-noetic-interactive-markers : Depends: libboost-thread1.71.0 but it is not installable ros-noetic-joint-state-controller : Depends: libconsole-bridge0.4 but it is not installable ros-noetic-kdl-conversions : Depends: liborocos-kdl1.4 but it is not installable ros-noetic-kdl-parser : Depends: liborocos-kdl1.4 but it is not installable Depends: libtinyxml2-6a (>= 5.0.0) but it is not installable Depends: liburdfdom-model but it is not installable ros-noetic-laser-assembler : Depends: libboost-filesystem1.71.0 but it is not installable Depends: libconsole-bridge0.4 but it is not installable Depends: libtinyxml2-6a (>= 5.0.0) but it is not installable ros-noetic-laser-filters : Depends: libboost-filesystem1.71.0 but it is not installable Depends: libconsole-bridge0.4 but it is not installable Depends: libtinyxml2-6a (>= 5.0.0) but it is not installable ros-noetic-laser-geometry : Depends: libboost-thread1.71.0 but it is not installable ros-noetic-nodelet : Depends: libboost-filesystem1.71.0 but it is not installable Depends: libboost-thread1.71.0 but it is not installable Depends: libconsole-bridge0.4 but it is not installable Depends: libtinyxml2-6a (>= 5.0.0) but it is not installable ros-noetic-nodelet-tutorial-math : Depends: libconsole-bridge0.4 but it is not installable ros-noetic-pcl-ros : Depends: libboost-filesystem1.71.0 but it is not installable Depends: libconsole-bridge0.4 but it is not installable Depends: libpcl-common1.10 (>= 1.10.0+dfsg) but it is not installable Depends: libpcl-features1.10 (>= 1.10.0+dfsg) but it is not installable Depends: libpcl-filters1.10 (>= 1.10.0+dfsg) but it is not installable Depends: libpcl-io1.10 (>= 1.10.0+dfsg) but it is not installable Depends: libpcl-search1.10 (>= 1.10.0+dfsg) but it is not installable Depends: libpcl-segmentation1.10 (>= 1.10.0+dfsg) but it is not installable Depends: libpcl-surface1.10 (>= 1.10.0+dfsg) but it is not installable ros-noetic-pluginlib : Depends: libboost-filesystem1.71.0 but it is not installable ros-noetic-pluginlib-tutorials : Depends: libboost-filesystem1.71.0 but it is not installable Depends: libconsole-bridge0.4 but it is not installable Depends: libtinyxml2-6a (>= 5.0.0) but it is not installable ros-noetic-position-controllers : Depends: libconsole-bridge0.4 but it is not installable ros-noetic-robot-state-publisher : Depends: liborocos-kdl1.4 but it is not installable Depends: liburdfdom-world but it is not installable ros-noetic-rosbag : Depends: libboost-filesystem1.71.0 but it is not installable Depends: libboost-program-options1.71.0 but it is not installable Depends: libboost-regex1.71.0-icu66 but it is not installable Depends: libboost-thread1.71.0 but it is not installable Depends: libconsole-bridge0.4 but it is not installable Depends: ros-noetic-rosbag-storage but it is not going to be installed ros-noetic-rosconsole : Depends: libboost-regex1.71.0-icu66 but it is not installable Depends: liblog4cxx10v5 (>= 0.10.0) but it is not installable ros-noetic-rosconsole-bridge : Depends: libconsole-bridge0.4 but it is not installable ros-noetic-roscpp : Depends: libboost-chrono1.71.0 but it is not installable Depends: libboost-filesystem1.71.0 but it is not installable Depends: libboost-thread1.71.0 but it is not installable ros-noetic-roscpp-tutorials : Depends: libboost-thread1.71.0 but it is not installable ros-noetic-rospack : Depends: libboost-filesystem1.71.0 but it is not installable Depends: libboost-program-options1.71.0 but it is not installable Depends: libpython3.8 (>= 3.8.2) but it is not installable Depends: libtinyxml2-6a (>= 5.0.0) but it is not installable ros-noetic-rqt-image-view : Depends: libconsole-bridge0.4 but it is not installable Depends: libopencv-core4.2 (>= 4.2.0+dfsg) but it is not installable Depends: libopencv-imgproc4.2 (>= 4.2.0+dfsg) but it is not installable Depends: ros-noetic-rqt-gui-cpp but it is not going to be installed ros-noetic-rqt-rviz : Depends: libboost-program-options1.71.0 but it is not installable Depends: libconsole-bridge0.4 but it is not installable Depends: ros-noetic-rqt-gui-cpp but it is not going to be installed ros-noetic-rviz : Depends: libboost-filesystem1.71.0 but it is not installable Depends: libboost-program-options1.71.0 but it is not installable Depends: libboost-thread1.71.0 but it is not installable Depends: libconsole-bridge0.4 but it is not installable Depends: libtinyxml2-6a (>= 5.0.0) but it is not installable Depends: liburdfdom-world but it is not installable Depends: libyaml-cpp0.6 (>= 0.6.2) but it is not installable ros-noetic-rviz-plugin-tutorials : Depends: libboost-thread1.71.0 but it is not installable Depends: libconsole-bridge0.4 but it is not installable ros-noetic-stage-ros : Depends: libboost-thread1.71.0 but it is not installable ros-noetic-stereo-image-proc : Depends: libconsole-bridge0.4 but it is not installable Depends: libopencv-calib3d4.2 (>= 4.2.0+dfsg) but it is not installable Depends: libopencv-core4.2 (>= 4.2.0+dfsg) but it is not installable Depends: libopencv-imgproc4.2 (>= 4.2.0+dfsg) but it is not installable ros-noetic-tf : Depends: libboost-thread1.71.0 but it is not installable ros-noetic-tf-conversions : Depends: liborocos-kdl1.4 but it is not installable ros-noetic-tf2 : Depends: libconsole-bridge0.4 but it is not installable ros-noetic-tf2-ros : Depends: libboost-thread1.71.0 but it is not installable Depends: ros-noetic-tf2-py but it is not going to be installed ros-noetic-theora-image-transport : Depends: libconsole-bridge0.4 but it is not installable Depends: libopencv-core4.2 (>= 4.2.0+dfsg) but it is not installable Depends: libopencv-imgproc4.2 (>= 4.2.0+dfsg) but it is not installable ros-noetic-turtle-actionlib : Depends: libboost-thread1.71.0 but it is not installable ros-noetic-urdf : Depends: libboost-filesystem1.71.0 but it is not installable Depends: libconsole-bridge0.4 but it is not installable Depends: libtinyxml2-6a (>= 5.0.0) but it is not installable Depends: liburdfdom-model but it is not installable E: Unable to correct problems, you have held broken packages.我执行到第三步后出现报错,请在此基础上给我能够成功安装ros1的操作步骤
最新发布
07-23
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值