Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 65,986
» Latest member: gordonks18
» Forum threads: 268
» Forum posts: 499

Full Statistics

Online Users
There are currently 115 online users.
» 2 Member(s) | 113 Guest(s)
Anthonysturi, IvanBuh

Latest Threads
Top-notch Сasual Dating -...
Forum: General
Last Post: jadenmikey
04-20-2024, 11:03 AM
» Replies: 0
» Views: 170
unpredictable dating
Forum: General
Last Post: JessicaWes
02-26-2024, 04:42 PM
» Replies: 2
» Views: 38,207
singular dating
Forum: General
Last Post: JessicaWes
02-26-2024, 11:40 AM
» Replies: 1
» Views: 35,676
Normall Lift Table manufa...
Forum: Newbie and Startup
Last Post: TERenlTet
12-10-2023, 07:13 PM
» Replies: 1
» Views: 2,615
Снять шлюху Владивосток д...
Forum: General
Last Post: MariaEl
07-01-2022, 12:42 AM
» Replies: 2
» Views: 38,778
I want to meet serious ma...
Forum: General
Last Post: MariaEl
06-29-2022, 09:48 PM
» Replies: 1
» Views: 39,718
WhiteFanposts Fanshots Se...
Forum: General Discussion on Lindenis V5
Last Post: MariaEl
06-29-2022, 09:40 PM
» Replies: 2
» Views: 6,021
Rectangular Dining Room T...
Forum: Newbie and Startup
Last Post: MariaEl
06-29-2022, 07:06 AM
» Replies: 1
» Views: 3,973
NEW 2020! IMPORTANT! - W...
Forum: General
Last Post: MariaEl
06-26-2022, 06:30 AM
» Replies: 5
» Views: 76,578
Hampton Bay Ceiling Fans ...
Forum: General Discussion on Lindenis V5
Last Post: MariaEl
06-26-2022, 05:57 AM
» Replies: 2
» Views: 5,690

 
  build image using lindenis SDK
Posted by: ssdmt - 08-11-2019, 12:00 PM - Forum: General Discussion on Lindenis V5 - Replies (4)

1) i build the image using lindenis SDK
2) i flashed the lindenis board using phoenix app
3) AND no more output is seen on the uart-putty console after "Starting Kernel..."


what's wrong??

p.s.: 

uart0 log:

[156]HELLO! BOOT0 is starting!
[160]boot0 commit : 8 
[173]rsb_send_initseq: rsb clk 400Khz -> 3Mhz
[179]PMU: AXP233
[181]set pll start
[184]set pll end
[186]DRAM BOOT DRIVE INFO: V0.66
[189]DRAM CLK = 792 MHZ
[191]DRAM Type = 3 (2Big GrinDR2,3Big GrinDR3,6:LPDDR2,7:LPDDR3)
[197]DRAM ZQ value: 0x003b3bfb
[203]DRAM SIZE =1024 M
[205]Disable Auto SR
[207]dram size =1024
[211]common_mix:v1.1
[213]card no is 2
[215]sdcard 2 line count 8
[217][mmc]: mmc driver ver 2017-09-26 15:04
[222][mmc]: mmc 2 bias 00000000
[230][mmc]: ***Try MMC card 2***
[251][mmc]: MMC 5.0
[253][mmc]: HSDDR52/DDR50 8 bit
[256][mmc]: 50000000 Hz
[258][mmc]: 7393 MB
[260][mmc]: ***SD/MMC 2 init OK!!!***
[378]Loading boot-pkg Succeed(index=0).
[382]Entry_name        = scp
[390]Entry_name        = u-boot
[414]Entry_name        = soc-cfg
[417]Entry_name        = dtb
[422]Ready to disable icache.
[425]0xffffffff 0xffffffff
[427]0xff16ffff 0xffffffff
[430]0xff0f16ff 0xffffffff
[433]0xffffffff 0xffffffff
[435]0xffffffff 0xffffffff
[438]0xffffffff 0xffffffff
[441]Jump to secend Boot.


U-Boot 2014.07-g4074e47-dirty (Jul 30 2019 - 00:39:29) Allwinner Technology 

uboot commit : 4074e471bd50a35ea591dfb87bb5d086f7df3545
 
secure enable bit: 0
normal mode: with secure monitor
[0.445]rsb init by cpux
[0.445]rsb_send_initseq: rsb clk 400Khz -> 3Mhz
[0.446]pmbus:   ready
[0.448]PMU: AXP233
[0.450]PMU: AXP233 found
[0.453]bat_vol=724, ratio=-1
set pa_bias(0) bias:3300
set pd_bias(2) bias:3300
set pe_bias(3) bias:2800
set pf_bias(4) bias:3300
set pg_bias(5) bias:1800
set pi_bias(6) bias:1800
set pj_bias(7) bias:2800
set vcc_bias(8) bias:3300
[0.473]set power on vol to default
[0.476]dcdc1_vol = 3300, onoff=1
[0.479]dcdc2_vol = 900, onoff=1
[0.482]aldo1_vol = 3300, onoff=1
[0.485]aldo2_vol = 3300, onoff=1
[0.488]dldo2_vol = 900, onoff=0
[0.491]eldo1_vol = 1800, onoff=1
[0.494]eldo2_vol = 3300, onoff=1
[0.497]eldo3_vol = 1800, onoff=1
[0.500]dc1sw_vol = 3300, onoff=1
[0.502]find power_sply to end
[0.506]PMU: cpux 1008 Mhz,AXI=336 Mhz
PLL6=600 Mhz,AHB1=200 Mhz, APB1=24Mhz MBus=400Mhz
DRAM:  1 GiB
[0.516]fdt addr: 0x7abc9d68
[0.517]gd->fdt_size: 0x1b080
Relocation Offset is: 35d28000
gic: normal mode
[0.658][key recovery] no use
workmode = 0,storage type = 2
[0.658]MMC: 2
[0.658][mmc]: mmc driver ver 2017-11-08 20:31:00
[0.661][mmc]: get sdc_ex_dly_used 2, use auto tuning sdly
SUNXI SD/MMC: 2
[0.669][mmc]: media type 0x8000000
[0.669][mmc]: Try MMC card 2
[0.689][mmc]: mmc don't support HS400
[0.695][mmc]: host caps: 0x6f
[0.705][mmc]: MID 000088 PSN e0043124
[0.705][mmc]: PNM NCard  -- 0x4e-43-61-72-64
[0.705][mmc]: PRV 4.3
[0.705][mmc]: MDT m-1 y-2017
[0.705][mmc]: MMC v5.0
[0.705][mmc]: bus_width      : 8 bit
[0.705][mmc]: user capacity  : 7393 MB
[0.705][mmc]: SD/MMC 2 init OK!!!
[0.709][mmc]: Best spd md: 2-HSDDR52/DDR50, freq: 2-50000000
[0.721][mmc]: EOL Info(Rev blks): Normal
[0.721][mmc]: Wear out(type A): [0.721][mmc]: 0%-10% life time used
[0.721][mmc]: Wear out(type B): [0.724][mmc]: 0%-10% life time used
[0.727][mmc]: End mmc_init_boot
[0.730]sunxi flash init ok
used mbr [0], count = 4
[0.735]try to burn key
[0.737]display init start
drv_disp_init
init_clocks: finish init_clocks.
pwm_request: reg = 0x300a000. pwm = 0.
request pwm success, pwm = 0.
drv_disp_init finish
[0.764]boot_disp.output_disp=0
[0.764]boot_disp.output_type=0
boot_disp.output_mode=0
[0.764]boot_disp.auto_hpd=0
[0.767]test_disp.test_used=0
[0.767]disp0 device type(0) enable , in NormalMode
[0.769]display init end
--------fastboot partitions--------
-total partitions:4-
-name-        -start-       -size-      
boot-res    : 1000000       2000000     
env         : 3000000       20000       
boot        : 3020000       1400000     
UDISK       : 4420000       0           
-----------------------------------
base bootcmd=run setargs_nand boot_normal
bootcmd set setargs_mmc
no misc partition is found
[0.806]to be run cmd=run setargs_mmc boot_normal
read mac from efuse failed
read item0 copy0
Item0 (Map) magic is bad
the secure storage item0 copy0 is bad
read item0 copy1
Item0 (Map) magic is bad
the secure storage item0 copy0 == copy1, the data is good
the secure storage map is empty
no item name rootwait in the map
sunxi storage read fail
no item name fsck.repair in the map
sunxi storage read fail
no item name mac in the map
sunxi storage read fail
no item name wifi_mac in the map
sunxi storage read fail
check user data form private
the private part isn't exist
[0.858][mmc]: hsddr 2-50000000
[0.860][mmc]: get max-frequency ok 50000000 Hz
[0.864][mmc]: 1 1 0: 1 1 0
[0.866][mmc]: no mmc-hs400-1_8v!
[0.869][mmc]: no mmc-hs200-1_8v!
[0.876]update dtb dram start
[0.877]update dtb dram  end
PowerBus = 2( 2:vBus 3:acBus other: not exist)
(*) no battery exist
sunxi_bmp_logo_display
reading bootlogo.bmp
161660 bytes read in 4 ms (38.5 MiB/s)
[0.891]bmp file buffer: 0x40000000, bmp_info.buffer: 46400000
[0.898]fetch script data boot_disp.output_full fail
[0.901]screen_id =0, screen_width =0, screen_height =0
[0.906]frame buffer address 46400036
[0.910]inter uboot shell
Hit any key to stop autoboot:  1  0 
[1.914]read partition: boot or recovery
boota: bad boot image magic, maybe not a boot.img?
try to read partition(boot) all
[2.152]sunxi flash read :offset 3020000, 20971520 bytes OK
cmdline: mix=0x1000@0x7bd31000
mbr_partition: mbr=0x3e0
## Booting kernel from Legacy Image at 45000000 ...
   Image Name:   Linux-4.4.55+
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3280928 Bytes = 3.1 MiB
   Load Address: 40008000
   Entry Point:  40008000
   Loading Kernel Image ... OK
(*) cmd line = earlyprintk=sunxi-uart,0x05000c00 initcall_debug=0 console=ttyS0,115200 loglevel=8 rootwait=1 root=/dev/mmcblk0p1 fsck.repair=yes init=/init partitions=boot-res@mmcblk0p2:env@mmcblk0p5:boot@mmcblk0p6:UDISK@mmcblk0p1 cma=384M vmalloc=480M mac_addr= wifi_mac= mix=0x1000@0x7bd31000 mbr=0x3e0   reserving fdt memory region: addr=40000000 size=1000
   reserving fdt memory region: addr=40020000 size=800
   reserving fdt memory region: addr=48100000 size=4000
   reserving fdt memory region: addr=48104000 size=1000
   reserving fdt memory region: addr=48105000 size=1000
   Using Device Tree in place at 44000000, end 4401e07f
(*) krn = e1a00000
[2.222]para err in disp_ioctl, cmd = 0xa,screen id = 1
[2.225][mmc]: mmc exit start
[2.244][mmc]: mmc 2 exit ok

Starting kernel ...

Print this item

  Audio input error
Posted by: yuhki - 06-29-2019, 02:15 AM - Forum: General Discussion on Lindenis V5 - Replies (2)

All of the MPP_SAMPLE programs that have an audio input cause an error.


***************************************************************
  1 : vi+(venc+rtsp)+vo
  2 : vi+(venc+rtsp)
  3 : vi+vo
  4 : vi+ise+(venc+rtsp)+vo
  5 : [vi+venc+vo]+[ai+aenc+ao]+rtsp
  6 : vi->yuv+venc+rtsp
  7 : vi+venc+mux
  8 : vi+(venc+mux)+vo
  9 : demux+vdec+vo
 10 : ai+aenc+mux+ao
 11 : demux+adec+ao
 12 : Quit
***************************************************************
 Please choice 1~12 num: 10

 Start run ai+aenc+mux+ao function......

[FUN]SampleAiAencMuxAo [LINE]299  Do sample_vi_venc start!
I0629 02:14:09.968789  2915 mpi_sys.c:707]                  <AW_MPI_SYS_SetConf>          kfctmpdir is [/tmp]
>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Media Process Platform<<<<<<<<<<<<<<<<<<<<<<<<<<<<
modName : MPP-Platform
tag   : V1.0 Release
branch: v5-dev
commit: 4eed413532ad87725895a8cb1ba75e22fc328233
date  : 20170725
author: jenkins
aw_dlinit_ext_131 called , the path of libiploader.so is /usr/lib/libip_loader_soft.so
I0630 23:55:05.315201 16649 mpi_sys.c:941]                  <AW_MPI_SYS_Init>             ISP init
I0630 23:55:05.315357 16649 mpi_sys.c:943]                  <AW_MPI_SYS_Init>             ISP init done
I0630 23:55:05.315785 16649 hwdisplay.c:63]                 <hw_display_init>             <hw_display_init:63>
I0630 23:55:05.315914 16649 hwdisplay.c:746]                <hwd_init>                    <hwd_init:746> (hwd_init 746)
I0630 23:55:05.319869 16649 alsa_interface.c:552]           <alsaOpenMixer>               open mixer
I0630 23:55:05.417703 16649 alsa_interface.c:606]           <alsaOpenMixer>               set playback vol_val to value: 27
[FUN]mpp_comm_sys_init [LINE]76  Do sys init success
I0630 23:55:05.418393 16649 alsa_interface.c:411]           <alsaOpenPcm>                 open pcm! card:[default], pcmFlag:[0](0-cap;1-play)
I0630 23:55:05.420125 16649 alsa_interface.c:324]           <alsaSetPcmParams>            set pcm params
E0630 23:55:05.421025 16649 alsa_interface.c:385]           <alsaSetPcmParams>            Can't use period equal to buffer size (0 == 0)
E0630 23:55:05.471813 16649 mpi_ai.c:198]                   <AW_MPI_AI_CreateChn>         enable AiDev failed!
 ERROR! [FUN]mpp_comm_ai_create [LINE]264  audio_hw_ai ai_dev:0 not started! ERROR! [FUN]SampleAiAencMuxAo [LINE]319  Do mpp_comm_ai_create fail! ai_chn:0 ret:-1
 ERROR! [FUN]mpp_comm_ai_destroy [LINE]281  Do AW_MPI_AI_ResetChn ai_chn:0 fail! ret:0xa0158005
 ERROR! [FUN]mpp_comm_ai_destroy [LINE]287  Do AW_MPI_AI_DestroyChn ai_chn:0 fail! ret:0xa0158005
 ERROR! [FUN]mpp_comm_ai_destroy [LINE]281  Do AW_MPI_AI_ResetChn ai_chn:1 fail! ret:0xa0158005
 ERROR! [FUN]mpp_comm_ai_destroy [LINE]287  Do AW_MPI_AI_DestroyChn ai_chn:1 fail! ret:0xa0158005
I0630 23:55:05.472277 16649 alsa_interface.c:644]           <alsaCloseMixer>              close mixer
I0630 23:55:05.473037 16649 hwdisplay.c:776]                <hwd_exit>                    <hwd_exit:776> (hwd_exit 776)
[FUN]mpp_comm_sys_exit [LINE]91  The sys exit!

Print this item

  V5 V100 PINOUT.xls
Posted by: ssdmt - 04-26-2019, 08:28 PM - Forum: General Discussion on Lindenis V5 - Replies (2)

I saw in the V5 V100 datasheet file:

screen from v5 datasheet

Where can i  find "V5 V100 PINOUT.xls" document?

Print this item

  V5 v100 Hardware design user guide
Posted by: ssdmt - 04-26-2019, 08:22 PM - Forum: General Discussion on Lindenis V5 - Replies (2)

I saw in the V5 datasheet file:

screen from datasheet

where can i find "V5 V100 Hardware design user guide" document?

Print this item

  use AW_MPI_ADEC_SendStream error
Posted by: shane - 04-15-2019, 09:30 AM - Forum: General Discussion on Lindenis V5 - No Replies

HI guy

I used AW_MPI_ADEC_SendStream API,but i get this
"component/AudioDec_Component.c:2258: ComponentThread: Assertion `0' failed"
and
"E/:AudioDec_Component <ComponentThread:2257>: fatal error! why get bitwidth=0 after decode first bs?!" error.

I create audio decode follow this :

---------------------------------------------------------------------------------------------------

    ADEC_CHN_ATTR_S mAdecChnAttr;
    int mAdecChn = 0;


    mAdecChnAttr.mType = PT_AAC;
    mAdecChnAttr.sampleRate = 48000;
    mAdecChnAttr.channels = 2;
    mAdecChnAttr.bitRate = 320 * 1000;     //it's no used on papers
    mAdecChnAttr.bitsPerSample = 16;
    mAdecChnAttr.attachAACHeader = 1;

    AW_MPI_ADEC_CreateChn(mAdecChn, &mAdecChnAttr);

    MPPCallbackInfo cbInfo;
    cbInfo.cookie = NULL;
    cbInfo.callback = (MPPCallbackFuncType)&MPPCallbackFunc;
    AW_MPI_ADEC_RegisterCallback(mAdecChn, &cbInfo);

    MPP_CHN_S ADECChn = {MOD_ID_ADEC, 0, 0};
    MPP_CHN_S AOChn = {MOD_ID_AO, 0, 0};
    ret = AW_MPI_SYS_Bind(&ADECChn, &AOChn);
    if (ret) {
        _DEBUG_MSG("Do Audio AW_MPI_SYS_Bind fail! ret:0x%x\n", ret);
        return;
    }

    ret = AW_MPI_ADEC_StartRecvStream(mAdecChn);
    if (ret)
    {
        _DEBUG_MSG("Do AW_MPI_ADEC_StartRecvStream fail! ret:%d\n", ret);
        return;
    }

    ret = AW_MPI_AO_StartChn(0, 0);
    if (ret)
    {
        _DEBUG_MSG("Do AW_MPI_AO_EnableVirChn fail! ret:%d\n", ret);
        return;
    }

---------------------------------------------------------------------------------------------------

can somebody help me ??

Print this item

  1080P H265 (HEVC) Decode error
Posted by: shane - 03-22-2019, 08:47 AM - Forum: General Discussion on Lindenis V5 - No Replies

Hi All , I used rtsp input( H265 1080P 30 FPS) to decode and ouput to hdmi,but get this error.

---------------------------------------------------------------------------------------------------
warning: cedarc <HevcDecDecodeOneFrame:2554>:  ctuNum not rignt: 1395, 2040
warning: cedarc <HevcDecDecodeOneFrame:2554>:  ctuNum not rignt: 1395, 2040
warning: cedarc <HevcDecDecodeOneFrame:2554>:  ctuNum not rignt: 1395, 2040
warning: cedarc <HevcDecDecodeOneFrame:2554>:  ctuNum not rignt: 1395, 2040
warning: cedarc <HevcDecDecodeOneFrame:2554>:  ctuNum not rignt: 1395, 2040
warning: cedarc <HevcVeStatusInfo:1791>: HEVC slice dec error, poc: 0, ctuNum = 165, totalCtuNum = 2040
error  : cedarc <DecoderDecodeOneNalu:2413>:  h265 decode one slice hardware error 
warning: cedarc <HevcDecDecodeOneFrame:2547>: h265 decode nalu error, continue decode next nalu! nalu type: 19, size: 90569
warning: cedarc <HevcDecDecodeOneFrame:2548>: *******pHevcDec->pCurrFrame = (nil),i = 3
warning: cedarc <HevcDecDecodeOneFrame:2554>:  ctuNum not rignt: 1525, 2040
warning: cedarc <HevcAddCandidateRef:126>: ref_frame is error, reset decoder to deocde from keyFrame
warning: cedarc <HevcFrameStart:1980>:  construct reference picture set failed , ret = 34
debug  : cedarc <H265DecoderDecode:517>:  reset h265 intra decoder 
warning: cedarc <HevcDecDecodeOneFrame:2554>:  ctuNum not rignt: 1525, 2040
warning: cedarc <HevcDecDecodeOneFrame:2554>:  ctuNum not rignt: 1525, 2040
-----------------------------------------------------------------------------------------------

ffprobe
---------------------------------------------------------------------------------------
Input #0, rtsp, from 'rtsp://XXXXXXXXXX/stream0':
  Metadata:
    title           : Media Presentation
  Duration: N/A, start: 0.000333, bitrate: N/A
    Stream #0:0: Video: hevc (Main), yuvj420p(pc, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 30 fps, 30 tbr, 90k tbn, 30 tbc
---------------------------------------------------------------------------------------

VDEC configure
----------------------------------------------------------------------------------------
    VDEC_CHN_ATTR_S vdec_attr;

    memset(&vdec_attr, 0, sizeof(VDEC_CHN_ATTR_S));
    vdec_attr.mType                         = PT_H265;
    vdec_attr.mPicWidth                     = 1920;
    vdec_attr.mPicHeight                    = 1080;
    vdec_attr.mInitRotation                 = ROTATE_NONE;
    vdec_attr.mOutputPixelFormat       = MM_PIXEL_FORMAT_YVU_SEMIPLANAR_420;
    vdec_attr.mVdecVideoAttr.mMode          = VIDEO_MODE_FRAME;
    vdec_attr.mVdecVideoAttr.mSupportBFrame = 0;
---------------------------------------------------------------------------------------

Any body know how to resolve it?

Print this item

  Selling my board
Posted by: populus - 03-10-2019, 06:12 PM - Forum: General Discussion on Lindenis V5 - No Replies

Hi,

don't know if this is allowed or the right place to do so, but I've bought two boards for a project and willing so sell one of them.

I'm located in the Netherlands, shipping to within the EU should be relatively inexpensive. 

The board has the 8MP camera, WiFi and eMMC module included.

The whole kit cost me 130 euro's and can go for 100 euro's. (or offer)

Regards,
Wim

Print this item

  How to PIP
Posted by: blueyoon - 02-15-2019, 08:46 AM - Forum: General Discussion on Lindenis V5 - Replies (1)

Is there an example that implements picture in pictue in V5?
I have two cameras and want to implement PIP in real time.
Please help me with these video overlays.

Print this item

  Motion Detection
Posted by: tylerjbrooks - 02-14-2019, 12:38 AM - Forum: General Discussion on Lindenis V5 - Replies (1)

What is the right way to do motion detection with the V5?

I would like to draw boxes around the motion in my video.  Currently, I am using the DTCA API (AW_AI_CVE_DTCA_Process()) to get a target list and then draw boxes around the targets in the image.  Is this the right way to do this?  I would say the results are sporadic.  Sometimes the motion is detected/identified and sometimes not.  Are there any more documents/examples (besides the slim DTCA doc and sample) on how to tune the DTCAParam file (params_cvedtca.xml) and how to calibrate DTCA (params_cveclbr.xml)?  There seem to be a lot of options in the DTCAParam file (like tripwire, loiter, etc..) but I am only getting 'perimeter' events.  Is that because only 'perimeter' is in the 'funcs' section?  If so, how do I add the others.  I would like to detect if a target is loitering in an area but I can't get it to work.

I am making a stationary IP camera.  Is the Head Count (HCNT) library a better thing to use? 

Is it possible to detect motion from the output of the H264 encoder?  For instance, is there an easy way to get at the Motion Vectors in the P Slices besides parsing the bitstream directly?

Finally, is there a raw image detector like in the V3?  I believe in that chip there was a library to which I could submit a small scale image and it would detect motion.  Is there anything like that for the V5 ?

Print this item

  build debian image error
Posted by: gnensis - 02-13-2019, 08:41 PM - Forum: General Discussion on Lindenis V5 - Replies (1)

I got the following error when I build the debian image. Can any one help me?

Code:
./build/mk-debian.sh
Skip extract basic rootfs
Copy modules
Copy overlay
Change root
root@ubuntu:/#
root@ubuntu:/# export DEBIAN_FRONTEND=noninteractive
root@ubuntu:/#
root@ubuntu:/# error()
> {
> echo ""
> echo "Error occur"
> echo ""
> exit -1
> }
root@ubuntu:/# trap error ERR
root@ubuntu:/#
root@ubuntu:/# if [ ! -f /etc/systemd/system/multi-user.target.wants/depmod.service ] ; then
> systemctl enable depmod.service
> fi
root@ubuntu:/#
root@ubuntu:/# apt-get update
Err:1 http://security.debian.org/debian-security stretch/updates InRelease
 Temporary failure resolving 'security.debian.org'
Err:2 http://ftp.debian.org/debian stretch InRelease
 Temporary failure resolving 'ftp.debian.org'
Err:3 http://ftp.debian.org/debian stretch-updates InRelease
 Temporary failure resolving 'ftp.debian.org'
Reading package lists... Done
W: Failed to fetch http://ftp.debian.org/debian/dists/stretch/InRelease  Temporary failure resolving 'ftp.debian.org'
W: Failed to fetch http://ftp.debian.org/debian/dists/stretch-updates/InRelease  Temporary failure resolving 'ftp.debian.org'
W: Failed to fetch http://security.debian.org/debian-security/dists/stretch/updates/InRelease  Temporary failure resolving 'security.debian.org'
W: Some index files failed to download. They have been ignored, or old ones used instead.
root@ubuntu:/#
root@ubuntu:/# if ! dpkg -s locales > /dev/null 2>&1 ; then
> apt-get install -y locales
> sed -i 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen
> echo 'LANG=en_US.UTF-8' >> /etc/default/locale
> dpkg-reconfigure -f noninteractive locales
> update-locale LANG=en_US.UTF-8
> fi
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following additional packages will be installed:
 libc-l10n
The following NEW packages will be installed:
 libc-l10n locales
0 upgraded, 2 newly installed, 0 to remove and 19 not upgraded.
Need to get 4107 kB of archives.
After this operation, 13.8 MB of additional disk space will be used.
Err:1 http://ftp.debian.org/debian stretch/main armel libc-l10n all 2.24-11+deb9u3
 Temporary failure resolving 'ftp.debian.org'
Err:2 http://ftp.debian.org/debian stretch/main armel locales all 2.24-11+deb9u3
 Temporary failure resolving 'ftp.debian.org'
E: Failed to fetch http://ftp.debian.org/debian/pool/main/g/glibc/libc-l10n_2.24-11+deb9u3_all.deb  Temporary failure resolving 'ftp.debian.org'
E: Failed to fetch http://ftp.debian.org/debian/pool/main/g/glibc/locales_2.24-11+deb9u3_all.deb  Temporary failure resolving 'ftp.debian.org'
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

Error occur

Print this item