Jump to content

При установке ошибка exit code: 158


Recommended Posts

Попытался установить Debian/Entware-3 в свой Giga II, У меня в логах, Ошибка 158 гуглил не смог найти как решить проблему. Что я делаю не так?

Jan 29 20:52:37ndmOpkg::Manager: disk is set to: 67E3-17ED:
Jan 29 20:52:37ndmOpkg::Manager: /tmp/mnt/EFI mounted to /tmp/mnt/EFI.
Jan 29 20:52:37ndmOpkg::Manager: /tmp/mnt/EFI mounted to /opt/.
Jan 29 20:52:37ndmOpkg::Manager: system failed [0xcffd0183], exit code 158.
Jan 29 20:52:37ndmOpkg::Manager: init script reset to default: /opt/etc/initrc.
Jan 29 20:52:37ndmOpkg::Manager: invalid initrc "/opt/etc/initrc": no such file or directory, trying /opt/etc/init.d/.
Jan 29 20:52:37ndmCore::ConfigurationSaver: saving configuration...
Jan 29 20:52:41ndmCore::ConfigurationSaver: configuration saved.

 

Link to comment
Share on other sites

Список возвращаемых кодов распаковщика:

#define NPKG_EXIT_SUCCESS_              EXIT_SUCCESS                          
#define NPKG_EXIT_BASE__                128                                   
#define NPKG_EXIT_USAGE_                NPKG_EXIT_BASE__ + 1                  
#define NPKG_EXIT_OSERR_                NPKG_EXIT_BASE__ + 2                  
#define NPKG_EXIT_MISSING_ARGUMENT_     NPKG_EXIT_USAGE_                      
#define NPKG_EXIT_UNKNOWN_OPTION_       NPKG_EXIT_USAGE_                      
#define NPKG_EXIT_UNKNOWN_ARGUMENT_     NPKG_EXIT_USAGE_                      
#define NPKG_EXIT_NO_OUTPUT_PATH_       NPKG_EXIT_USAGE_                      
#define NPKG_EXIT_NO_INPUT_PATH_        NPKG_EXIT_USAGE_                      
#define NPKG_EXIT_SYSLOG_FAILURE_       NPKG_EXIT_OSERR_                      
#define NPKG_EXIT_PIPE_FAILURE_         NPKG_EXIT_OSERR_                      
#define NPKG_EXIT_FORK_FAILURE_         NPKG_EXIT_OSERR_                      
#define NPKG_EXIT_OPEN_FAILURE_         NPKG_EXIT_BASE__ + 3                  
#define NPKG_EXIT_OPENDIR_FAILURE_      NPKG_EXIT_BASE__ + 4                  
#define NPKG_EXIT_READDIR_FAILURE_      NPKG_EXIT_BASE__ + 5                  
#define NPKG_EXIT_STAT_FAILURE_         NPKG_EXIT_BASE__ + 6                  
#define NPKG_EXIT_CHDIR_FAILURE_        NPKG_EXIT_BASE__ + 7                  
#define NPKG_EXIT_GZIP_FAILURE_         NPKG_EXIT_BASE__ + 8                  
#define NPKG_EXIT_WAIT_FAILURE_         NPKG_EXIT_BASE__ + 9                  
#define NPKG_EXIT_UNLINK_FAILURE_       NPKG_EXIT_BASE__ + 10                 
#define NPKG_EXIT_GETCWD_FAILURE_       NPKG_EXIT_BASE__ + 11                 
#define NPKG_EXIT_WPIPE_FAILURE_        NPKG_EXIT_BASE__ + 12                 
#define NPKG_EXIT_TAR_ALIGN_FAILURE_    NPKG_EXIT_BASE__ + 13                 
#define NPKG_EXIT_TAR_PARSE_FAILURE_    NPKG_EXIT_BASE__ + 14                 
#define NPKG_EXIT_TAR_OPEN_FILE_        NPKG_EXIT_BASE__ + 15                 
#define NPKG_EXIT_TAR_WRITE_FILE_       NPKG_EXIT_BASE__ + 16                 
#define NPKG_EXIT_TAR_TRUNC_FILE_       NPKG_EXIT_BASE__ + 17                 
#define NPKG_EXIT_TAR_MAKE_LINK_        NPKG_EXIT_BASE__ + 18                 
#define NPKG_EXIT_TAR_MAKE_SYMLINK_     NPKG_EXIT_BASE__ + 19                 
#define NPKG_EXIT_TAR_MAKE_DIR_         NPKG_EXIT_BASE__ + 20                 
#define NPKG_EXIT_TAR_CSUM_FAILURE_     NPKG_EXIT_BASE__ + 21                 
#define NPKG_EXIT_TAR_DATA_OOM_         NPKG_EXIT_BASE__ + 22                 
#define NPKG_EXIT_EXT_MISMATCH_         NPKG_EXIT_BASE__ + 30

@S1nGeN0r у Вас некорректное имя файла в каталоге install. Должно быть одно из:

    tar_gz_data_handler_t dh =                                                
        __extension(package_path, "ipk")     ? __extract_opkg :               
        __extension(package_path, "opk")     ? __extract_opkg :               
        __extension(package_path, "deb")     ? __extract_opkg :               
        __extension(package_path, "tgz")     ? __extract_data :               
        __extension(package_path, "tar.gz")  ? __extract_data :               
        NULL;                                                                 
                                                                              
    if (dh == NULL) {                                                         
        return NPKG_EXIT_EXT_MISMATCH_;                                       
    }

 

  • Thanks 4
Link to comment
Share on other sites

  • TheBB pinned this topic
  • ndm unpinned this topic

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...